1. 19 Mar, 2018 1 commit
  2. 17 Mar, 2018 1 commit
  3. 14 Mar, 2018 1 commit
  4. 13 Mar, 2018 2 commits
  5. 11 Mar, 2018 1 commit
  6. 08 Mar, 2018 1 commit
  7. 07 Mar, 2018 1 commit
  8. 06 Mar, 2018 1 commit
  9. 01 Mar, 2018 1 commit
  10. 18 Feb, 2018 1 commit
  11. 16 Feb, 2018 2 commits
  12. 15 Feb, 2018 1 commit
  13. 08 Feb, 2018 1 commit
  14. 02 Feb, 2018 1 commit
  15. 01 Feb, 2018 3 commits
  16. 24 Jan, 2018 1 commit
  17. 12 Jan, 2018 1 commit
  18. 10 Jan, 2018 1 commit
  19. 08 Jan, 2018 1 commit
  20. 05 Jan, 2018 1 commit
  21. 12 Dec, 2017 1 commit
  22. 07 Dec, 2017 7 commits
  23. 29 Nov, 2017 1 commit
  24. 28 Nov, 2017 5 commits
    • Tom Bergan's avatar
      http2: fix flake in net/http's TestCloseIdleConnections_h2 · 894f8ed5
      Tom Bergan authored
      That test makes a request with no body and receives a response with no
      body. The client will receive a HEADERS frame with END_STREAM. The test
      assumes that the stream is closed immediately on receipt of that HEADERS
      frame, i.e., before RoundTrip returns.
      
      This assumption was broken by https://golang.org/cl/70510, which made
      stream closure asynchronous w.r.t. RoundTrip.
      
      To fix TestCloseIdleConnections_h2 while preserving the intent of CL
      70510, we break processHeaders into two cases:
      
      1. The request has a body. In this case, END_STREAM puts the stream in a
         half-closed-remote state, which means the connection is not
         necessarily idle when RoundTrip returns (since the request body is
         still being uploaded). In this case, we preserve the behavior from CL
         70510.
      
      2. The request does not have a body. In this case, END_STREAM puts the
         stream in a closed state and we must close the stream before
         returning from RoundTrip.
      
      The following command passes when this CL is merged into net/http:
      go test -count=100000 -run=TestCloseIdleConnections_h2 net/http
      
      Updates golang/go#22413
      
      Change-Id: Iff2a0685a636ad51bff380e86a42b0d0eea984e5
      Reviewed-on: https://go-review.googlesource.com/80139
      Run-TryBot: Tom Bergan <tombergan@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      894f8ed5
    • Gregory Man's avatar
      http2: discard logger output in invalid response tests · 6921abc3
      Gregory Man authored
      In invalid response tests logger write error messages to stderr and spam
      test output.
      
      Since we know response are invalid in these tests we can safely discard
      logger output.
      
      Fixes golang/go#22850
      
      Change-Id: Id8c97be910f0cf7dbe2380ba632960364bc8478b
      Reviewed-on: https://go-review.googlesource.com/80235Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      6921abc3
    • Brad Fitzpatrick's avatar
      http/httpproxy: fix build on Go 1.8 · fc492d2e
      Brad Fitzpatrick authored
      Go 1.8 doesn't have t.Helper.
      
      Fix the row of red on the dashboard.
      
      Change-Id: I85d4bb9fe38e989dc3b6a4e99705599745b83cef
      Reviewed-on: https://go-review.googlesource.com/80140
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      Reviewed-by: 's avatarTom Bergan <tombergan@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      fc492d2e
    • Tom Bergan's avatar
      http2: fix leak in activeRes by removing activeRes · e6a4aa30
      Tom Bergan authored
      AFAICT, activeRes serves no real purpose. It is used in just two ways:
      
      - To reduce the number of calls to closeIfIdle, which reduces the number
        of acquires of cc.mu when there are many concurrent streams. I dug
        through the CL history and could not find any benchmarks showing that
        this is necessary.
      
      - To avoid redundant calls to cs.bufPipe.CloseWithError(err) when a read
        loop is shutdown. This is unnecessary, since redundant CloseWithError
        calls are ignored.
      
      Since there isn't a good reason to have activeRes, the simplest way to
      fix the leak is to remove activeRes entirely.
      
      Updates golang/go#21543
      
      Change-Id: I1d1d2dc6c946425a2772c8bf71436707021ac269
      Reviewed-on: https://go-review.googlesource.com/80137Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      e6a4aa30
    • Tom Bergan's avatar
      http2: don't autodetect Content-Type when the response has an empty body · db473f6b
      Tom Bergan authored
      This change was originally made in https://golang.org/cl/46631, however,
      that change was applited to net/http/h2_bundle.go instead of x/net/http2.
      
      Updates golang/go#20784
      
      Change-Id: I947fa4c19f3efc400856573768140bece28276a2
      Reviewed-on: https://go-review.googlesource.com/80135
      Run-TryBot: Tom Bergan <tombergan@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      db473f6b
  25. 27 Nov, 2017 2 commits