- 03 Oct, 2018 1 commit
-
-
Kunpei Sakai authored
Change-Id: I03ebb4369389262b842001e18d0594fd71b19f44 Reviewed-on: https://go-review.googlesource.com/c/138797 Run-TryBot: Kunpei Sakai <namusyaka@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Nigel Tao <nigeltao@golang.org>
-
- 26 Sep, 2018 1 commit
-
-
Jongmin Kim authored
Change-Id: Ic1771d3ea0e26e02f71d5f4d1d458eb93a2c016d Reviewed-on: https://go-review.googlesource.com/137695Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 25 Sep, 2018 2 commits
-
-
Kunpei Sakai authored
See: https://html.spec.whatwg.org/multipage/parsing.html#special Change-Id: Ief3f0c04d2c7530a44221cb8fa2e22dd6d8b8427 Reviewed-on: https://go-review.googlesource.com/136876Reviewed-by: Nigel Tao <nigeltao@golang.org>
-
Kunpei Sakai authored
If there are nested <template> elements and the <template> node isn't in HTML namespace, couldn't continue to parse documents correctly. By this patch, it makes the <template> which is in math namespace be skipped on resetting insertion mode. Fixes golang/go#27702 Change-Id: I6eacdb98fe29eb3c61781afca5bc4d83e72ba4ed Reviewed-on: https://go-review.googlesource.com/136875Reviewed-by: Nigel Tao <nigeltao@golang.org>
-
- 21 Sep, 2018 1 commit
-
-
Kunpei Sakai authored
The <isindex> element has been removed from the spec so that the <template> element doesn't cover it. To avoid panic, this commit adds ignoring code as a workaround. Fixes golang/go#27704 Change-Id: I847391389285df2fc0eb6a795f8c93b481cdebac Reviewed-on: https://go-review.googlesource.com/136575Reviewed-by: Nigel Tao <nigeltao@golang.org>
-
- 11 Sep, 2018 1 commit
-
-
Mikio Hara authored
Fixes golang/go#27630. Change-Id: Id44ade435733ffcd2fc8159ea9ea3287baadf97a Reviewed-on: https://go-review.googlesource.com/134755 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 06 Sep, 2018 1 commit
-
-
Nigel Tao authored
They implement the HTML5 parsing algorithm, which is very complicated. Fixes golang/go#26973 Change-Id: I83a5753ab00fe84f73797fcecd309306d9f24819 Reviewed-on: https://go-review.googlesource.com/133695Reviewed-by: Kunpei Sakai <namusyaka@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 26 Aug, 2018 1 commit
-
-
Kunpei Sakai authored
Fixes golang/go#23071 Change-Id: I383e13bfd87e32ffb775dff54c46b66b090e5017 Reviewed-on: https://go-review.googlesource.com/131475 Run-TryBot: Kunpei Sakai <namusyaka@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Nigel Tao <nigeltao@golang.org>
-
- 24 Aug, 2018 2 commits
-
-
Kunpei Sakai authored
Updates golang/go#23071 Change-Id: I1fdf3fe8c94efdf3c4bf9c39900468381159a032 Reviewed-on: https://go-review.googlesource.com/131178 Run-TryBot: Kunpei Sakai <namusyaka@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Kunpei Sakai authored
Updates golang/go#23071 Change-Id: I02a61109b5738759a9ee3e448981778de7d0ff62 Reviewed-on: https://go-review.googlesource.com/130795 Run-TryBot: Kunpei Sakai <namusyaka@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Nigel Tao <nigeltao@golang.org>
-
- 21 Aug, 2018 1 commit
-
-
Brad Fitzpatrick authored
Updates golang/go#26775 Change-Id: Iea95ea07bb0fed42410efb4e8420d8e9a17704fe Reviewed-on: https://go-review.googlesource.com/127664Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 16 Aug, 2018 1 commit
-
-
Kunpei Sakai authored
See more details: https://bugs.chromium.org/p/chromium/issues/detail?id=829668 Updates golang/go#23071 Change-Id: Ib9c963269f814c3f21d3784754729df57dcc8f90 Reviewed-on: https://go-review.googlesource.com/123776 Run-TryBot: Kunpei Sakai <namusyaka@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Nigel Tao <nigeltao@golang.org>
-
- 11 Aug, 2018 1 commit
-
-
Kunpei Sakai authored
Updates golang/go#23071 Change-Id: I36b0ee58f61b7de25730e0fb082eeb7ef2787594 Reviewed-on: https://go-review.googlesource.com/123920 Run-TryBot: Kunpei Sakai <namusyaka@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Nigel Tao <nigeltao@golang.org>
-
- 08 Aug, 2018 2 commits
-
-
Mikio Hara authored
On BSD variaints, for some historical reason, the data format used by raw ICMP socket may differ from the IPv4 wire format and the format used by raw IP socket. This change clarifies that input of ParseIPv4Header must conform to the raw ICMP socket format. Change-Id: I7288eccaaae0662d0437794098c8f7fc4a55d81e Reviewed-on: https://go-review.googlesource.com/128216Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Mikio Hara authored
On BSD variants, for some historical reason, the data format used by raw IP socket may differ from the IPv4 wire format. This change clarifies that input and output of Header type must conform to the raw IP socket format. Change-Id: I6ca363f7ea9a3d7645ee81b588785204dee00cba Reviewed-on: https://go-review.googlesource.com/128215Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 07 Aug, 2018 1 commit
-
-
Volker Dobler authored
Update the list to revision 2225db8d9f4a2a27ec697c883360632fa0c16261 (2018-05-23T23:26:06Z). Change-Id: Iec14ad04e81b205eeafdb6c8f02caec29f8df7e4 Reviewed-on: https://go-review.googlesource.com/128255Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 01 Aug, 2018 3 commits
-
-
Jean de Klerk authored
Fixes golang/go#24137 Change-Id: Ifcf6449aed32071cdb643028347ec814bffd8d06 Reviewed-on: https://go-review.googlesource.com/127121Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Brad Fitzpatrick authored
This generated 120 kB on the heap before at init, regardless of whether somebody used http2. Worse, because we vendored it into std, users would have two copies, for about 256 kB of memory. After CL 127235 that went down to 60 kB per copy, so 120 kB for a binary using golang.org/x/net/http2 explicitly. With this, it goes to 0 until one of the two copies in the binary actually uses one of the http2 packages. I wasn't able to measure any difference with the Once.Do in the decode path: name old time/op new time/op delta HuffmanDecode-4 732ns ± 8% 707ns ± 3% ~ (p=0.268 n=10+9) (admittedly noisy) Change-Id: I6c1065abc0c3458f3cb69e0f678978267ff35ea2 Reviewed-on: https://go-review.googlesource.com/127275 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
Reduces process-wide heap (inuse_space) by 60kB by using a pointer to a fixed-sized array instead of a slice of a fixed size. Before: 119.44kB 23.43% 23.43% 147.88kB 29.01% golang.org/x/net/http2/hpack.addDecoderNode After: 59.72kB 13.28% 39.85% 87.94kB 19.56% golang.org/x/net/http2/hpack.addDecoderNode (This is all work from an init func in http2/hpack) Doesn't seem to affect runtime performance. Measured with: $ cat huffman_test.go package main import ( "testing" _ "golang.org/x/net/http2" ) func TestMem(t *testing.T) {} $ GODEBUG=memprofilerate=1 go test -memprofilerate=1 -memprofile=mem.prof -v . === RUN TestMem --- PASS: TestMem (0.00s) PASS ok huffmem 0.052s $ go tool pprof --inuse_space mem.prof Change-Id: I5e56a5a2682f1063c955b342b37e97ca4c303dab Reviewed-on: https://go-review.googlesource.com/127235Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 31 Jul, 2018 1 commit
-
-
Brad Fitzpatrick authored
Updates golang/go#24795 Change-Id: Idb018ad9eba1292e91d9339190fdd24ef8a0af4e Reviewed-on: https://go-review.googlesource.com/126895 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Damien Neil <dneil@google.com>
-
- 30 Jul, 2018 4 commits
-
-
Mikio Hara authored
Change-Id: I70c1953d811234a78c88d073ff2a0001fbc9b6bf Reviewed-on: https://go-review.googlesource.com/126640Reviewed-by: Matt Layher <mdlayher@gmail.com>
-
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 3 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>
-