1. 10 Jan, 2016 4 commits
    • Adam Langley's avatar
      crypto/cipher: always zero dst buffer on GCM authentication failure. · 13eabea0
      Adam Langley authored
      The AESNI GCM code decrypts and authenticates concurrently and so
      overwrites the destination buffer even in the case of an authentication
      failure.
      
      This change updates the documentation to make that clear and also
      mimics that behaviour in the generic code so that different platforms
      act identically.
      
      Fixes #13886
      
      Change-Id: Idc54e51f01e27b0fc60c1745d50bb4c099d37e94
      Reviewed-on: https://go-review.googlesource.com/18480Reviewed-by: default avatarRuss Cox <rsc@golang.org>
      Run-TryBot: Adam Langley <agl@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      13eabea0
    • Yao Zhang's avatar
      cmd/dist: restrict parallel tests to NumCPU on mips64x · 30919fe9
      Yao Zhang authored
      mips64 builder and one machine of the mips64le builder has small amount
      of memory. Since CL 18199, they have been running slowly, as more
      processes were launched in running 'test' directory, and a lot of swap
      were used. This CL brings all.bash from 5h back to 3h on Loongson 2E
      with 512 MB memory.
      
      Change-Id: I4a22e239a542a99ba5986753205d8cd1f4b3d3c6
      Reviewed-on: https://go-review.googlesource.com/18483Reviewed-by: default avatarMinux Ma <minux@golang.org>
      Run-TryBot: Minux Ma <minux@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      30919fe9
    • Brad Fitzpatrick's avatar
      net/http: update bundled http2 · 9ee72f42
      Brad Fitzpatrick authored
      Updates http2 to x/net git rev 0e6d34ef942 for https://golang.org/cl/18472
      which means we'll get to delete a ton of grpc-go code and just use the
      standard library's HTTP client instead.
      
      Also, the comments in this CL aren't entirely accurate it turns out.
      RFC 2616 says:
      
      "The Trailer header field can be used to indicate which header fields
      are included in a trailer (see section 14.40)."
      
      And 14.40:
      
      "  An HTTP/1.1 message SHOULD include a Trailer header field in a
         message using chunked transfer-coding with a non-empty trailer. Doing
         so allows the recipient to know which header fields to expect in the
         trailer.
      
         If no Trailer header field is present, the trailer SHOULD NOT include
         any header fields. See section 3.6.1 for restrictions on the use of
         trailer fields in a "chunked" transfer-coding."
      
      So it's really a SHOULD more than a MUST.
      
      And gRPC (at least Google's server) doesn't predeclare "grpc-status"
      ahead of time in a Trailer Header, so we'll be lenient. We were too
      strict anyway. It's also not a concern for the Go client we have a
      different place to populate the Trailers, and it won't confuse clients
      which aren't looking for them. The ResponseWriter server side is more
      complicated (and strict), though, since we don't want to widen the
      ResponseWriter interface. So the Go server still requires that you
      predeclare Trailers.
      
      Change-Id: Ia2defc11a2469fb8570ecfabb8453537121084eb
      Reviewed-on: https://go-review.googlesource.com/18473
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      9ee72f42
    • Harshavardhana's avatar
      net/http: don't remove Expect Request header in Server. · 2747ca35
      Harshavardhana authored
      Fixes #13893
      
      Change-Id: I2577b38fdb19299227dc146f707cf9df663dcdfc
      Reviewed-on: https://go-review.googlesource.com/18471
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      2747ca35
  2. 09 Jan, 2016 5 commits
  3. 08 Jan, 2016 31 commits