- 07 Dec, 2016 1 commit
-
-
Mikio Hara authored
To warn about the provided stop function should not be nil. Change-Id: I73351b6379ae22e85298ce9e87ee80077f748c7e Reviewed-on: https://go-review.googlesource.com/34091 TryBot-Result: Gobot Gobot <gobot@golang.org> Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
-
- 06 Dec, 2016 5 commits
-
-
Mikio Hara authored
Change-Id: I6f0745cb5754b059dd05fcaf24454936093eaeaa Reviewed-on: https://go-review.googlesource.com/33934 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Mikio Hara authored
Change-Id: I13a03838daab0f45a4d9479c3b7baa94021c720a Reviewed-on: https://go-review.googlesource.com/33933 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Brad Fitzpatrick authored
Debugged & wrote with Tom Bergan. Updates golang/go#18083 Change-Id: I00a1cb748fe9c0f01c5bd4b8d1ac4438b56f1f8c Reviewed-on: https://go-review.googlesource.com/33971 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tom Bergan <tombergan@google.com>
-
Tom Bergan authored
Update golang/go#18083 Change-Id: I2600f8a7a0d3a630003c010496a7fceca1b9f660 Reviewed-on: https://go-review.googlesource.com/33974Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
-
Tom Bergan authored
Updates #golang/go#18083 Change-Id: If0ebbbb9b5644a4cec94c89e28939fcaeb4de321 Reviewed-on: https://go-review.googlesource.com/33972Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 02 Dec, 2016 2 commits
-
-
Joe Tsai authored
The interface for net.Conn is getting stricter for the Go 1.8 release. We add a package that tests that a given net.Conn implementation properly satisfies the interface. Fixes golang/go#18097 Change-Id: I5e9f1f3c7cb5c060d734ed7e3a24886d4213c4e1 Reviewed-on: https://go-review.googlesource.com/33679Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Brad Fitzpatrick authored
Updates golang/go#18152 Change-Id: Ia3df3f9668847690e60a2af0680cf1bd66042384 Reviewed-on: https://go-review.googlesource.com/33806Reviewed-by: Ross Light <light@google.com>
-
- 16 Nov, 2016 5 commits
-
-
Mikio Hara authored
Change-Id: Ib667928f91808640021ea9d61bc5477824729655 Reviewed-on: https://go-review.googlesource.com/33253 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
Change-Id: I8900190d3234d3f8883761b2ae735f2a959b9a26 Reviewed-on: https://go-review.googlesource.com/33252 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Mikio Hara authored
This change also uses nettest.SupportsIPv6MulticastDeliveryOnLoopback to disable multicast packet delivery tests on some platform that doesn't support the feature. Fixes golang/go#17015. Change-Id: Ia547efc2ac3779a96592bbc3874533fb65b711af Reviewed-on: https://go-review.googlesource.com/33251 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Mikio Hara authored
The kernel is used in OS X Mountain Lion or below, or iOS version 8 or below. Updates golang/go#17015. Change-Id: I8a849dc2ab4e04535f893b776bf704079cc91977 Reviewed-on: https://go-review.googlesource.com/33250 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Mikio Hara authored
Change-Id: I0c4c58d6488ddf321a5d62b6e9f0dd46f5f40438 Reviewed-on: https://go-review.googlesource.com/33256Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 15 Nov, 2016 4 commits
-
-
Tom Bergan authored
https://go-review.googlesource.com/33238 fixed scheduling of RST_STREAMs so they are added to the appropriate stream queue. However, RST_STREAM may be sent before OpenStream or after CloseStream in certain error cases, such as: https://github.com/golang/net/blob/00ed5e97ea3a5ac46658b98e50259941947cec04/http2/server.go#L1395 https://github.com/golang/net/blob/00ed5e97ea3a5ac46658b98e50259941947cec04/http2/frame.go#L866 https://github.com/golang/net/blob/00ed5e97ea3a5ac46658b98e50259941947cec04/http2/frame.go#L947 In these cases, the failing stream has no queue and in priorityWriteScheduler.Push will panic. A simple fix is to add RST_STREAMs to the root queue when the stream queue doesn't exist. This is correct because: - RST_STREAM is tiny and doesn't use flow control bytes, so prioritization is not important. - The server should not send any frames on a stream after sending RST_STREAM, but even if that happens, the RST_STREAM will be ordered before those other frames because the control queue has the highest priority. Fixes golang/go#17919 Change-Id: I2e8101f015822ef975303a1fe87634b36afbdc6b Reviewed-on: https://go-review.googlesource.com/33248Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
-
Tormod Erevik Lea authored
Change-Id: I74ca09e4f4765c1c8d309b8fe1ce25b5e3d8171f Reviewed-on: https://go-review.googlesource.com/33270Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Mikio Hara authored
Change-Id: I383c170b38cf2b787c29127efe2d3b0587e6ceec Reviewed-on: https://go-review.googlesource.com/32138Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Brad Fitzpatrick authored
Fixes golang/go#17243 Change-Id: I76f972f908757b103e2ab8d9b1701312308d66e5 Reviewed-on: https://go-review.googlesource.com/33238Reviewed-by: Tom Bergan <tombergan@google.com>
-
- 14 Nov, 2016 4 commits
-
-
Brad Fitzpatrick authored
The Google-issue one expired and it's too onerous to request another and do it by hand. Change-Id: I221406bc66de4b027b979fd87f6ec38f66318f9e Reviewed-on: https://go-review.googlesource.com/33230Reviewed-by: Tom Bergan <tombergan@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Brad Fitzpatrick authored
If the user is using Server.SetKeepAlivesEnabled(false), assume they have a reason and respect it. Make HTTP/2 behave like HTTP/1 (except a bit nicer, since we have GOAWAY). Updates golang/go#17717 Change-Id: I4a5ce324f0ac8653d83e75029063cd2e270a1048 Reviewed-on: https://go-review.googlesource.com/33153Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Mikio Hara authored
Looks like using IPv6 options on Darwin 12 kernel is a hard task. This reverts commit 67a4d4ec. Change-Id: I1436e4ff7b42f068e09671ebe9c244a641eefdae Reviewed-on: https://go-review.googlesource.com/33173 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
-
Mikio Hara authored
Fixes golang/go#17015. Change-Id: Icfb7a689667e0f1df345d63558f2956596da9fb9 Reviewed-on: https://go-review.googlesource.com/28999 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 10 Nov, 2016 1 commit
-
-
Brad Fitzpatrick authored
Updates golang/go#17790 Change-Id: I7bc596d9a80490d545ad3d1de5859efce34714f6 Reviewed-on: https://go-review.googlesource.com/33102 TryBot-Result: Gobot Gobot <gobot@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
-
- 09 Nov, 2016 1 commit
-
-
Brad Fitzpatrick authored
Fixes golang/go#17868 Change-Id: I7f9d85f404198d68757d7ca5bb8b1e7aafaafa8b Reviewed-on: https://go-review.googlesource.com/33013 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tom Bergan <tombergan@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 08 Nov, 2016 3 commits
-
-
Tom Bergan authored
The max allowed stream ID is 2^31-1. The RFC says that we should send GOAWAY if the ID space is exhausted. Change-Id: I0042cb4e1f8781a2ece5a5f06f498eb06192da7f Reviewed-on: https://go-review.googlesource.com/32488 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Tom Bergan authored
The bad test was added in https://go-review.googlesource.com/32887. My fault. Change-Id: Iee98ef0579bc5de086fa286530d45db009407d10 Reviewed-on: https://go-review.googlesource.com/32910Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Tom Bergan authored
Fixes golang/go#17800 Change-Id: Ibcba9302e2e595ae49d9246ecedd332760486441 Reviewed-on: https://go-review.googlesource.com/32887Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 07 Nov, 2016 1 commit
-
-
Dmitri Shuralyov authored
Go policy has been single space after periods in comments for some time. The copyright header template at: https://golang.org/doc/contribute.html#copyright also uses a single space. Make them all consistent. This CL was generated with: perl -i -npe 's,^(// Copyright [0-9]+ The Go Authors\.) (All rights reserved\.)$,$1 $2,' $(git grep -l -E '^// Copyright [0-9]+ The Go Authors\. All rights reserved\.$') Follows https://golang.org/cl/20111. Change-Id: I66671dddf821f5dc027bc254e0196b3e3a2bdf3b Reviewed-on: https://go-review.googlesource.com/32878Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 04 Nov, 2016 2 commits
-
-
Tom Bergan authored
Fix sc.state, which was returning "idle" instead of "closed" if the max pushed stream ID happened to exceed the max client stream ID. This caused us to erroneously generate connection errors because we believed a state invariant had been violated when it had not. I also renamed maxStreamID to maxClientStreamID for clarity, since we need to track client-generated and server-generated stream IDs separately. Fixes golang/go#17777 Change-Id: Id3d5700d79cc699a267bd91d6ebace0770fa62fc Reviewed-on: https://go-review.googlesource.com/32755Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Brad Fitzpatrick authored
This reverts commit dffc95cb. Aliases aren't going into Go 1.8. See: https://github.com/golang/go/issues/16339#issuecomment-258527920 Updates #16339 Change-Id: Ie37e37349db596a89b4944179ab87b6f0577c826 Reviewed-on: https://go-review.googlesource.com/32753Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 03 Nov, 2016 1 commit
-
-
Brad Fitzpatrick authored
https://golang.org/cl/31727 made many of the Server Frame processors ignore incoming frames if the connection was in shutdown mode. The idea was that it's pointless to do work if we're about to hang up on them in 250ms anyway for violating a protocol error. But as of https://golang.org/cl/32412 (graceful shutdown) we can also be in "go away" mode for ErrCodeNo, which just means to nicely tell them to GOAWAY and because they did nothing wrong, we don't hang up in 250ms (the value of which gave the peer time to read the error before the TCP close), but instead we keep the conn open until it's idle. The combination of the two CLs made TestTransportAndServerSharedBodyRace_h2 flaky, since it was never seeing RST_STREAM on cancelation of requests, and then Handlers would block forever. Updates golang/go#17733 (fixes after bundle into std) Change-Id: I67491c1d7124bc3cb554f9246ea7683f20b6a4e3 Reviewed-on: https://go-review.googlesource.com/32583 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org>
-
- 02 Nov, 2016 2 commits
-
-
Brad Fitzpatrick authored
If the client canceled a request, the Transport would then send a RST_STREAM, but also would close the Response.Body's pipe. Meanwhile, the server's DATA response could already be on the wire in flight. We'd then read it, attempt to write its bytes to the buffer, find it already closed, bubble up that error, and ultimately close the whole TCP connection (breaking all other open streams). So, don't do that. Keep track of which connections we've sent RST_STREAM to, and ignore DATA frames on those streams. Updates golang/go#16974 (fixes after bundle to std) Change-Id: Ic29a3aefff5241146cd2ca80aafa35fc4fb18b6e Reviewed-on: https://go-review.googlesource.com/32571Reviewed-by: Tom Bergan <tombergan@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
-
Brad Fitzpatrick authored
"h2-14" was draft 14 of http2. It's past time to retire announcing it. Everybody has been using "h2" in the wild for quite some time now. The Google GFE doesn't accept it anymore either. Change-Id: I087681a0a5e7117de3ab74a2f3f9e0ae45e007cd Reviewed-on: https://go-review.googlesource.com/32576Reviewed-by: Tom Bergan <tombergan@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 01 Nov, 2016 1 commit
-
-
Daniel Theophanes authored
Currently there is no way to pass request scoped information from the handler to the FileSytem interface. This can be important to pass credentials or timeout parameters to the FileSystem operations. Pipe context through the request from http.Request.Context(). With pre-go1.7 use context.Background(). Custom FileSystem implementations will need to change, but it will only require a new argument in each of the FileSystem methods. The change will be trivial to update to. Fixes golang/go#17658 Change-Id: I7491faf3467ad55db793a68081e074a9b3f9624d Reviewed-on: https://go-review.googlesource.com/32421Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 31 Oct, 2016 2 commits
-
-
Brad Fitzpatrick authored
The previous way was causing init blocks to be generated which the linker wasn't smart enough to discard, and the cmd/go tool was once again including http1 & http2 Servers. Change-Id: I9d82e14421e0faa96437668f9013d1174f009936 Reviewed-on: https://go-review.googlesource.com/32417Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Daniel Theophanes <kardianos@gmail.com> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Alex Brainman authored
Fixes golang/go#17661 Change-Id: Iff004af969c694dde9bc3c56add3a419ab1beac7 Reviewed-on: https://go-review.googlesource.com/32373Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 30 Oct, 2016 2 commits
-
-
Brad Fitzpatrick authored
This adds support for gracefully shutting down the Server, including sending a GOAWAY frame to clients and shutting down when things are idle. For now this support is only when integrated with the standard library's Server. A future change could export some of this. Updates golang/go#4674 Change-Id: I78cd4f58ca529bf9d149054f929d9089e7685875 Reviewed-on: https://go-review.googlesource.com/32412 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
The net/http package is now better at HTTP redirects, but that broke these tests which were trying to test the WebDAV server handler's behavior for a single roundtrip but were accidentally using the HTTP client (which does redirects) instead. Use the http.Transport which only does a single HTTP roundtrip. Change-Id: I8a0cfe2f841effc2f50c26f90c140e94e256a0ac Reviewed-on: https://go-review.googlesource.com/32413 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dominik Honnef <dominik@honnef.co> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 29 Oct, 2016 3 commits
-
-
Brad Fitzpatrick authored
This is an alternate implementation of https://golang.org/cl/32230 which is nicer to the dead code elimination in Go's linker. The old implementation causes a test in the net/http package to fail: https://storage.googleapis.com/go-build-log/2c24cf88/linux-amd64_39728ac9.log ... since it caused the cmd/go binary to link in the whole http1 & http2 Server code, due to the init func and slice which referenced those symbols. Instead, use an explicit func. This aso includes the tests meant to be in CL 32230 but which I'd failed to git add earlier. Updates golang/go#14204 Change-Id: I13dc138bf0c4df65bc282133ee94036b7f84ab70 Reviewed-on: https://go-review.googlesource.com/32323 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Martin Möhrmann <martisch@uos.de>
-
Brad Fitzpatrick authored
The console package empirically seems to require \r\n line endings now, else the print head does not go back to the left of the screen. Change-Id: I49f1870b8c48da254afaeaf3daf2e8fdd0432d52 Reviewed-on: https://go-review.googlesource.com/32321Reviewed-by: Blake Mizerany <blake.mizerany@gmail.com>
-
Nigel Tao authored
escapeXML was introduced in the previous commit: https://go-review.googlesource.com/29297 Change-Id: I7d0c982049e495b312b1b8d28ba794444dd605d4 Reviewed-on: https://go-review.googlesource.com/32370Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-