1. 16 Oct, 2017 1 commit
    • Anand K. Mistry's avatar
      net/http2: reset client stream after processing response headers · 1087133b
      Anand K. Mistry authored
      When a client receives a HEADER frame with a END_STREAM flag,
      clientConn.streamByID closes the stream before processing the headers
      which may contain a full non-error response. This causes the request's
      bodyWriter cancelation to race with the response.
      
      Closing the stream after processing headers allows the response to be
      available before the bodyWriter is canceled.
      
      Updates golang/go#20521
      
      Change-Id: I70740e88f75240836e922163a54a6cd89535f7b3
      Reviewed-on: https://go-review.googlesource.com/70510
      Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
      Reviewed-by: 's avatarTom Bergan <tombergan@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      1087133b
  2. 04 Oct, 2017 2 commits
  3. 27 Sep, 2017 1 commit
  4. 26 Sep, 2017 1 commit
  5. 22 Sep, 2017 1 commit
  6. 20 Sep, 2017 3 commits
  7. 15 Sep, 2017 1 commit
  8. 14 Sep, 2017 1 commit
  9. 12 Sep, 2017 1 commit
  10. 28 Aug, 2017 1 commit
    • Mike Appleby's avatar
      http2: Respect peer's SETTINGS_MAX_HEADER_LIST_SIZE in ClientConn · 66aacef3
      Mike Appleby authored
      Add a new peerMaxHeaderListSize member to ClientConn which records the
      SETTINGS_MAX_HEADER_LIST_SIZE requested by the client's peer, and
      respect this limit in (*ClientConn) encodeHeaders / encodeTrailers.
      
      Attempting to send more than peerMaxHeaderListSize bytes of headers or
      trailers will result in RoundTrip returning errRequestHeaderListSize.
      
      Updates golang/go#13959
      
      Change-Id: Ic707179782acdf8ae543429ea1af7f4f30e67e59
      Reviewed-on: https://go-review.googlesource.com/29243
      Run-TryBot: Tom Bergan <tombergan@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarTom Bergan <tombergan@google.com>
      66aacef3
  11. 24 Aug, 2017 1 commit
  12. 09 Aug, 2017 1 commit
    • Tom Bergan's avatar
      http2: block RoundTrip when the Transport hits MaxConcurrentStreams · 1c05540f
      Tom Bergan authored
      Currently if the http2.Transport hits SettingsMaxConcurrentStreams for a
      server, it just makes a new TCP connection and creates the stream on the
      new connection. This CL updates that behavior to instead block RoundTrip
      until a new stream is available.
      
      I also fixed a second bug, which was necessary to make some tests pass:
      Previously, a stream was removed from cc.streams only if either (a) we
      received END_STREAM from the server, or (b) we received RST_STREAM from
      the server. This CL removes a stream from cc.streams if the request was
      cancelled (via ctx.Close, req.Cancel, or resp.Body.Close) before
      receiving END_STREAM or RST_STREAM from the server.
      
      Updates golang/go#13774
      Updates golang/go#20985
      Updates golang/go#21229
      
      Change-Id: I660ffd724c4c513e0f1cc587b404bedb8aff80be
      Reviewed-on: https://go-review.googlesource.com/53250
      Run-TryBot: Tom Bergan <tombergan@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      1c05540f
  13. 08 Aug, 2017 3 commits
  14. 26 Jul, 2017 1 commit
  15. 21 Jul, 2017 1 commit
  16. 20 Jul, 2017 1 commit
  17. 19 Jul, 2017 3 commits
  18. 18 Jul, 2017 1 commit
  19. 16 Jul, 2017 1 commit
  20. 11 Jul, 2017 1 commit
  21. 06 Jul, 2017 1 commit
  22. 04 Jul, 2017 3 commits
  23. 29 Jun, 2017 3 commits
  24. 28 Jun, 2017 1 commit
  25. 27 Jun, 2017 3 commits
  26. 24 Jun, 2017 1 commit
  27. 23 Jun, 2017 1 commit