1. 24 Jan, 2016 2 commits
  2. 23 Jan, 2016 3 commits
  3. 22 Jan, 2016 5 commits
  4. 21 Jan, 2016 9 commits
  5. 20 Jan, 2016 4 commits
  6. 19 Jan, 2016 7 commits
  7. 18 Jan, 2016 6 commits
  8. 16 Jan, 2016 3 commits
  9. 15 Jan, 2016 1 commit
    • Brad Fitzpatrick's avatar
      net/http: update bundled http2 · 91b910b7
      Brad Fitzpatrick authored
      If a user starts two HTTP requests when no http2 connection is
      available, both end up creating new TCP connections, since the
      server's protocol (h1 or h2) isn't yet known. Once it turns out that
      the server supports h2, one of the connections is useless. Previously
      we kept upgrading both TLS connections to h2 (SETTINGS frame exchange,
      etc).  Now the unnecessary connections are closed instead, before the
      h2 preface/SETTINGS.
      
      Updates x/net/http2 to git rev a8e212f3d for https://golang.org/cl/18675
      
      This CL contains the tests for https://golang.org/cl/18675
      
      Semi-related change noticed while writing the tests: now that we have
      TLSNextProto in Go 1.6, which consults the TLS
      ConnectionState.NegotiatedProtocol, we have to gurantee that the TLS
      handshake has been done before we look at the ConnectionState. So add
      that check after the DialTLS hook. (we never documented that users
      have to call Handshake, so do it for them, now that it matters)
      
      Updates #13957
      
      Change-Id: I9a70e9d1282fe937ea654d9b1269c984c4e366c0
      Reviewed-on: https://go-review.googlesource.com/18676Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      91b910b7