- 30 Jul, 2018 3 commits
-
-
Mikio Hara authored
Change-Id: I7012df3e9083f5a158367009d5f41fc2517ac486 Reviewed-on: https://go-review.googlesource.com/126639Reviewed-by: Matt Layher <mdlayher@gmail.com>
-
Mikio Hara authored
Makes parameter names not start in capitals. Change-Id: I1861da0cbaff304b251f9540613cff8dc7beafd6 Reviewed-on: https://go-review.googlesource.com/126638Reviewed-by: Matt Layher <mdlayher@gmail.com>
-
Mikio Hara authored
Change-Id: If5e0d21f01496cf89d035b07a884073044a4e886 Reviewed-on: https://go-review.googlesource.com/126637 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com>
-
- 29 Jul, 2018 1 commit
-
-
William Chang authored
Implements h2c by leveraging the existing http2.Server by implementing the 2 ways to start an h2c connection as described in RFC 7540, which are: (1) create a connection starting with HTTP/1 and then upgrading to h2c [Section 3.2] and (2) starting a connection directly speaking h2c (aka starting with prior knowledge) [Section 3.4]. For both of the above connection methods the implementation strategy is to hijack a HTTP/1 connection, perform the h2c connection on the hijacked net.Conn, and create a suitably configured net.Conn to pass into http2.Server.ServeConn. For h2c with prior knowledge this is relatively simple. For that we just have to verify the HTTP/2 client preface has been written to the net.Conn, and then reforward the client preface to the hijacked connection. For h2c upgraded from HTTP/1, this is a bit more involved. First we validate the HTTP/1 Upgrade request, and respond to the client with 101 Switching Protocols. Then we write a HTTP/2 client preface on behalf of the client, and a settings frame and a headers frame which correspond to what was in the upgrade request. Then since http2.Server is going respond with a settings ACK, we swallow it so that it is not forwarded to the client since for h2c upgrade from HTTP/1 the 101 Switching Protocols response replaces the settins ACK. Fixes golang/go#14141 Change-Id: I435f40216c883809c0dcb75426c9c59e2ea31182 Reviewed-on: https://go-review.googlesource.com/112999Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 24 Jul, 2018 1 commit
-
-
Brad Fitzpatrick authored
It confused somebody who thought things were hanging because they had expected to see a response before they started streaming data. Change-Id: If672956efde3756c966b0c88b9c15ed21daeccba Reviewed-on: https://go-review.googlesource.com/125644Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 19 Jul, 2018 3 commits
-
-
Brad Fitzpatrick authored
Change-Id: If08e7b6133a2458547598cd45ba591ab091cf03f Reviewed-on: https://go-review.googlesource.com/125035Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Brad Fitzpatrick authored
Per private report. This isn't actually in the spec, but there's also no need to be so permissive here. Change-Id: I2b464778cc502ca7a99ea533622afea8f943eb7d Reviewed-on: https://go-review.googlesource.com/124735 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Nigel Tao authored
Change-Id: Iba82f92f80a12b34bf802b50f3589dd1c03f5cf9 Reviewed-on: https://go-review.googlesource.com/124617Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 18 Jul, 2018 1 commit
-
-
Ian Gudger authored
If during packing, the byte slice gets re-allocated between packing the ResourceHeader and ResourceBody, the length will get updated in the old byte slice before re-allocation resulting in a zero length in the final packed message. This change fixes the bug by passing the offset at which the length should be written instead of a slice of the output byte slice from ResourceHeader encoding step. Updates golang/go#16218 Change-Id: Ifd7e2f549b7087ed5b52eaa6ae78970fec4ad988 Reviewed-on: https://go-review.googlesource.com/123835 Run-TryBot: Ian Gudger <igudger@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 12 Jul, 2018 4 commits
-
-
Brad Fitzpatrick authored
I both forgot that this list could contain duplicates, and I had forgot to run the net/http tests against CL 123615 before mailing it, which ended up catching this bug. The diff of this file from the commit before CL 123615 (a45b4abe^ == cffdcf67) to this commit is: https://gist.github.com/bradfitz/0b7abf8fa421515aed9c4d55ce3a1994 ... effectively reverting much of CL 123615 and just moving the 1xx handling down lower. Updates golang/go#26189 (fixes after vendor into std) Updates golang/go#17739 Change-Id: Ib63060b0bb9721883b4b91a983b6e117994faeb9 Reviewed-on: https://go-review.googlesource.com/123675 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Andrew Bonventre <andybons@golang.org>
-
Brad Fitzpatrick authored
Updates golang/go#22891 Change-Id: Ibde5ce0867a78703a5a4f04fafc3d709ea4cbda3 Reviewed-on: https://go-review.googlesource.com/123656 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Brad Fitzpatrick authored
Updates golang/go#26189 (fixes after vendor into std) Updates golang/go#17739 Change-Id: I076cdbb57841b7dbbaa764d11240913bc3a8b05d Reviewed-on: https://go-review.googlesource.com/123615Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Brad Fitzpatrick authored
We were previously only using the new-ish Request.GetBody to "rewind" a Request.Body on retry when it seemed that we hadn't started the read+write body copy process from the old request yet. Apparently there's a bug somewhere, so this is a safe minimal fix for now, unconditionally using GetBody when it's available, rather than only using it when it seems we need to. Should have no performance impact because it's supposed to be cheap, and this only happens on rare retries where the server's GOAWAY came in-flight while we were writing a request. Updates golang/go#25009 (not a fix, but enough for Go 1.11) Change-Id: Ia462944d4a68cf2fde8d32b7b357b450c509a349 Reviewed-on: https://go-review.googlesource.com/123476Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 10 Jul, 2018 3 commits
-
-
Michael Fraenkel authored
Data sent on a closed stream is treated as a connection error of type STREAM_CLOSED. Updates golang/go#25023 Change-Id: I3a94414101ec08c7a3f20d49cefc0367af18017f Reviewed-on: https://go-review.googlesource.com/111676Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Michael Fraenkel authored
Wait until stream is checked before sending data. Updates golang/go#26314 Change-Id: If8a72d5e9ad313130043d0929dd741486aa2f0cd Reviewed-on: https://go-review.googlesource.com/123037 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Michael Fraenkel authored
Headers received on a half closed remote stream must respond with a stream error of type STREAM_CLOSED. Updates golang/go#25023 Change-Id: Ia369b24318aec6df769ecf0911d5152459bb25b2 Reviewed-on: https://go-review.googlesource.com/111677 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 09 Jul, 2018 6 commits
-
-
Brad Fitzpatrick authored
Tests in CL 122591 in the standard library, to be submitted after this CL. Updates golang/go#23041 Change-Id: I3538cc7d2a71e3a26ab4c2f47bb220a25404cddb Reviewed-on: https://go-review.googlesource.com/122590Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Olivier Poitrey authored
Sends a GOAWAY frame and wait for the in-flight streams to complete. Fixes golang/go#17292 Change-Id: I2b7dd61446f4ffd9c820fbb21d1233c3b3ad1ba8 Reviewed-on: https://go-review.googlesource.com/30076 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Brad Fitzpatrick authored
ClientTrace.WroteHeaderField was added in Go 1.11. Updates golang/go#19761 (fixes after vendor into std) Change-Id: I9a7af31b8601b9cd6efdee63d31a6c05102473d2 Reviewed-on: https://go-review.googlesource.com/122816 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Andrew Bonventre <andybons@golang.org>
-
Michael Fraenkel authored
NO_PROXY includes support for CIDR, and notations can also match exactly on port information if provided. When specifying a port with IPv6, the address must be enclosed with square brackets, [IPv6 address]:port. Updates golang/go#16704 (fixes after vendor into std) Change-Id: Ideb61a9ec60a6b1908f5a2c885cd6d9dd10c37cf Reviewed-on: https://go-review.googlesource.com/115255Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Brad Fitzpatrick authored
The case was ignored elsewhere in this file, but not in this place. Fixes golang/go#23699 Change-Id: I222092c10aab33d652df5d028cf93716955c20a5 Reviewed-on: https://go-review.googlesource.com/122588 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Mikio Hara authored
This change fixes the build breakage of h2i on JS and NaCl, and avoids using unintentional code path on JS. Change-Id: Ib08f0f6d1d79aecc9bf1e9ee7de52b0a57c22baf Reviewed-on: https://go-review.googlesource.com/122539 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 06 Jul, 2018 3 commits
-
-
Kunpei Sakai authored
See: https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inbody Fixes golang/go#25703 Updates golang/go#23071 Change-Id: I09db4c2d07a242cb45c3e37b499c609809dd0b83 Reviewed-on: https://go-review.googlesource.com/120658 Run-TryBot: Kunpei Sakai <namusyaka@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Nigel Tao <nigeltao@golang.org>
-
Mikio Hara authored
Change-Id: Iba4cf005f521a1ab7ff721f023222c364056af20 Reviewed-on: https://go-review.googlesource.com/122416 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Michael Fraenkel authored
There is no guaranteed ordering between writing headers and graceful shutdown, both put a message on different channels. Fixes golang/go#26190 Change-Id: I883fcf1de4bbe5a87af418d1b897a8aa941f1fd4 Reviewed-on: https://go-review.googlesource.com/122335Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 02 Jul, 2018 4 commits
-
-
Mikio Hara authored
Change-Id: I001c4b5ffceb97a599da10b21b8df1b1d6740ccc Reviewed-on: https://go-review.googlesource.com/121883 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Mikio Hara authored
Change-Id: I5a8eac6e80fd2c9f4604231d51cb91d3b8514fea Reviewed-on: https://go-review.googlesource.com/121882 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Mikio Hara authored
Also re-adjusts build constraints on stubs. Change-Id: I9c6d8487e17bb1f9e5204e363938a67a7f646c1c Reviewed-on: https://go-review.googlesource.com/121881 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Ian Gudger authored
This improves the debugability of the library and eases the transition to this library. For example, test DNS messages defined with another DNS library can be packed and then unpacked with this library. These unpacked messages can have GoString called on them to generate new test messages defined with this library. Updates golang/go#16218 Change-Id: I602586500fd8202892ef04187d3bd8a11039cf27 Reviewed-on: https://go-review.googlesource.com/120697Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 29 Jun, 2018 3 commits
-
-
Mikio Hara authored
Change-Id: I9dd88938ddf23a80bf7ac40292dc55954f51f275 Reviewed-on: https://go-review.googlesource.com/121557 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Mikio Hara authored
Change-Id: Ie3df352e1b59b7035bdf50a5b06feb3d1859de2a Reviewed-on: https://go-review.googlesource.com/121556 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Mikio Hara authored
Change-Id: I653cd92dc1b114719d1b6f3e296f67ed30edff24 Reviewed-on: https://go-review.googlesource.com/121555 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 28 Jun, 2018 2 commits
-
-
Brad Fitzpatrick authored
In Go's HTTP/1.x Server, a "Connection: close" response from a handler results in the TCP connection being closed. In HTTP/2, a "Connection" header is illegal and we weren't previously handling it, generating malformed responses to clients. (This is one of our violations listed in golang/go#25023) There was also a feature request in golang/go#20977 for a way for HTTP/2 handlers to close the connection after the response. Since we already close the connection for "Connection: close" for HTTP/1.x, do the same for HTTP/2 and map it to a graceful GOAWAY errcode=NO response. Updates golang/go#25023 (improves 8.1.2.2. Connection-Specific Header Fields) Updates golang/go#20977 (fixes after vendor into std) Change-Id: Iefb33ea73be616052533080c63b54ae679b1d154 Reviewed-on: https://go-review.googlesource.com/121415 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Michael Fraenkel authored
Correct overflow detection when going negative. Updates golang/go#25023 Change-Id: Ic2ddb7ee757f081d1826bfbbfd884e2b7e819335 Reviewed-on: https://go-review.googlesource.com/111675Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 27 Jun, 2018 1 commit
-
-
Michael Fraenkel authored
There is a race between scheduling the response of the header frame and when the data frame error is detected. The header frame may be queued before or after the stream reset. Fixes golang/go#25645 Change-Id: Id598eedfec9538fb7b154102a1a6e28e08fe117f Reviewed-on: https://go-review.googlesource.com/121197Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 21 Jun, 2018 1 commit
-
-
Gauthier Jolly authored
Those function names are ambiguous. These functions don't check if a client/server is connected but if the connection is client or server side. Adding some documentation should avoid any mistake. Change-Id: I0522e176d58c558fd880d49b980b0152b96823bc Reviewed-on: https://go-review.googlesource.com/120146Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 11 Jun, 2018 1 commit
-
-
Filippo Valsorda authored
This reverts commit f73e4c9e. Reason for revert: This turned out to cause more churn and provide less security than expected. Updates golang/go#24513 Change-Id: I2c8d0c39f8759ec8895a3261c91a98aeb2303ede Reviewed-on: https://go-review.googlesource.com/117955 Run-TryBot: Filippo Valsorda <filippo@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 30 May, 2018 3 commits
-
-
Nigel Tao authored
Update the list to revision 2225db8d9f4a2a27ec697c883360632fa0c16261 (2018-05-23T23:26:06Z). Change-Id: Ia47c0d0037c94c7c5c55eca95eced2d7a5deefae Reviewed-on: https://go-review.googlesource.com/115219Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Mikio Hara authored
This change adds DialWithConn method for allowing package users to use own net.Conn implementations optionally. Also makes the deprecated Dialer.Dial return a raw transport connection instead of a forward proxy connection for preserving the backward compatibility on proxy.Dialer.Dial method. Fixes golang/go#25104. Change-Id: I4259cd10e299c1e36406545708e9f6888191705a Reviewed-on: https://go-review.googlesource.com/110135 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Mikio Hara authored
The registry for IPv4 TOS Byte and IPv6 Traffic Class Octet has been moved to DSCP registry. Also uses HTTPS for fetching any IANA resource. Change-Id: I6a54defc2be4415fac084fcf9dfe0a481d72df33 Reviewed-on: https://go-review.googlesource.com/115220 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-