- 16 Jul, 2017 1 commit
-
-
Rhys Hiltner authored
Since Go 1.7 started including the context package in the core distribution, this package has been forwarding to the core package's implementation to the best of its ability. Since type aliases are due to be included in the Go 1.9 release, use them to forward more completely. Change-Id: I97b92cd34b3f4426f565bb3d115f119d3c83a1dd Reviewed-on: https://go-review.googlesource.com/49020 Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 11 Jul, 2017 1 commit
-
-
Tobias Klauser authored
Fix two format argument warnings found by vet. Change-Id: I01d55197c110c2a7486b1bd5dbd0afd74812e535 Reviewed-on: https://go-review.googlesource.com/48090Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 06 Jul, 2017 1 commit
-
-
Shi Han Ng authored
Fixes golang/go#13456 Change-Id: I0b938f824c47b29ac2026eff83e61c2f227a6cc1 Reviewed-on: https://go-review.googlesource.com/47530 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 04 Jul, 2017 3 commits
-
-
Mikio Hara authored
Change-Id: I248e5e5215960bceaba357d3d4a6e72191f955b1 Reviewed-on: https://go-review.googlesource.com/47372 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com>
-
Mikio Hara authored
Change-Id: I588bc65b0052efb12b3b7bc2267deedcdad029ce Reviewed-on: https://go-review.googlesource.com/47371 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com>
-
Mikio Hara authored
Change-Id: I17444d1cc3ce03b6947aaae18d4cecdf9c36193f Reviewed-on: https://go-review.googlesource.com/47110Reviewed-by: Ian Gudger <igudger@google.com> Reviewed-by: Matt Layher <mdlayher@gmail.com> Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 29 Jun, 2017 3 commits
-
-
Dmitri Shuralyov authored
CL 47095 applied a change to ExampleWithTimeout to resolve test flakiness. This change deviated ExampleWithTimeout further away from the ExampleWithTimeout in standard library's context package. There was a minor issue spotted in code review. Instead of attempting to resolve it here, it's better to use the version of ExampleWithTimeout from standard library that doesn't have the issue, and reduce maintenance. Change-Id: I3da9d7f7c35b33b52635df4c61058cb0b8ae95d9 Reviewed-on: https://go-review.googlesource.com/47212 Run-TryBot: Dmitri Shuralyov <shurcool@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Brad Fitzpatrick authored
Got a trybot failure in https://storage.googleapis.com/go-build-log/8aee0b8b/linux-amd64_38d0be3e.log Change-Id: I867a658968a0088c9f3f76ff235816e4179f0bec Reviewed-on: https://go-review.googlesource.com/47095Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
-
Tom Bergan authored
If the transport had previously sent a RST_STREAM but had not yet deleted the stream from its list of active streams, we should refund connection-level flow control for any DATA frame received as such DATA frames will never be read. We already refund connection-level flow control if a stream closes with unread data in bufPipe. However, when we receive a DATA frame after reset, we don't bother writing it to bufPipe, so we have to refund the flow control separately. Updates golang/go#20469 Change-Id: I5a9810a5d6b1bd7e291173af53646246545a6665 Reviewed-on: https://go-review.googlesource.com/46591 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 28 Jun, 2017 1 commit
-
-
Mikio Hara authored
Change-Id: I51969f70d4fc69829fd5a8bcd8a34b3be15b9db0 Reviewed-on: https://go-review.googlesource.com/46930 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 27 Jun, 2017 3 commits
-
-
Mikio Hara authored
Also renames the existing example function to make it visible with godoc command and godoc.org. Change-Id: I0e5bef22f2a95930c59c6e79f010ba61651012cd Reviewed-on: https://go-review.googlesource.com/46791 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Ian Gudger <igudger@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Mikio Hara authored
Change-Id: I288f01233defe6c673ef9dd5ec79353d3663a9af Reviewed-on: https://go-review.googlesource.com/46790 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Gudger <igudger@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Marcel van Lohuizen authored
Fixes golang/go#19821 Change-Id: Iee5d43dfeaaf580c39ca38a7a3a74cf2a8b347b3 Reviewed-on: https://go-review.googlesource.com/44381 Run-TryBot: Marcel van Lohuizen <mpvl@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Nigel Tao <nigeltao@golang.org>
-
- 24 Jun, 2017 1 commit
-
-
Ian Gudger authored
Updates golang/go#16218 Change-Id: Ice2821e873807ac4222825f0ca6f47b6a53f90b9 Reviewed-on: https://go-review.googlesource.com/46630Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
-
- 23 Jun, 2017 1 commit
-
-
Ian Gudger authored
Parsing and building can now be done 100% allocation free for most types. Non-name variable-length fields such as TXT records still require allocations. Building with compression still causes allocations due to the use of a map. Both parsing and building will perform allocations in error paths. Updates golang/go#16218 Change-Id: I644a7776bd0bf4ad20def521cee44eeadc5e9c06 Reviewed-on: https://go-review.googlesource.com/41145 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 21 Jun, 2017 4 commits
-
-
Mikio Hara authored
Change-Id: I226484f6edb0c299487b87fc0384e478969debdc Reviewed-on: https://go-review.googlesource.com/46233 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: If48cad79ce060625db0c04ad80f6305fd8d4b338 Reviewed-on: https://go-review.googlesource.com/46232 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: I991e893a0f0b0aea680ef18e09008b30e8a972c6 Reviewed-on: https://go-review.googlesource.com/46231 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Mikio Hara authored
Change-Id: Ia73c7bfff664f91c8a4c97656d0bd9e576145aa4 Reviewed-on: https://go-review.googlesource.com/46230 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 19 Jun, 2017 2 commits
-
-
Brad Fitzpatrick authored
With Tom Bergan. Updates golang/go#20704 Change-Id: Ib71202801f8c72af2f22865899c93df1f3753fdd Reviewed-on: https://go-review.googlesource.com/46008 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tom Bergan <tombergan@google.com>
-
Jaana Burcu Dogan authored
Fixes #20478. Change-Id: I739b6f1368889b735944d74be2d16b7e09eb11a2 Reviewed-on: https://go-review.googlesource.com/45998Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 16 Jun, 2017 1 commit
-
-
Brad Fitzpatrick authored
Updates golang/go#18891 Change-Id: I866862d805dc1757b27817ddb30cf22dc48ac3ff Reviewed-on: https://go-review.googlesource.com/45993 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 14 Jun, 2017 2 commits
-
-
Volker Dobler authored
Update the list to revision f47d806df99585862c8426c3e064a50eb5a278f5 (2017-06-14T11:49:01Z). The rules for the TLD zw changed thus changing the tests to bd which has the same rule as the old zw TLD. Change-Id: Ic4ed6eaeb3e97d20c50f44a4934576fa3f0393d7 Reviewed-on: https://go-review.googlesource.com/45731 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Brad Fitzpatrick authored
Updates golang/go#19103 (fixes after bundle into std) Change-Id: I847133e289e210dedf2b89ab529478edc5de11d1 Reviewed-on: https://go-review.googlesource.com/45773 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 13 Jun, 2017 2 commits
-
-
Mikio Hara authored
Change-Id: I5c484662add4261f504607758521718f4c760375 Reviewed-on: https://go-review.googlesource.com/45294 TryBot-Result: Gobot Gobot <gobot@golang.org> Run-TryBot: Matt Layher <mdlayher@gmail.com> Reviewed-by: Matt Layher <mdlayher@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Matt Layher authored
This interface can be implemented by types which are capable of attaching compiled BPF filters to themselves, such as x/net/ipv{4,6}.PacketConn. Fixes golang/go#19912 Change-Id: I4674c3e312c173d5a7a3beb3cd53704f8c08e29b Reviewed-on: https://go-review.googlesource.com/44972 Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
-
- 10 Jun, 2017 1 commit
-
-
Brad Fitzpatrick authored
It apparently used to be called connErrorReason but when it was renamed the comment wasn't updated. Also, the comment was split via a blank line, detaching it from its decl node. Change-Id: I4ae510fc0e48fd61f40489428f9da4c6cab3ef2f Reviewed-on: https://go-review.googlesource.com/45273Reviewed-by: Hiroshi Ioka <hirochachacha@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 09 Jun, 2017 2 commits
-
-
Mikio Hara authored
Change-Id: I39f79ec43c73b2fcc90316713181940ada523150 Reviewed-on: https://go-review.googlesource.com/45114 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Mikio Hara authored
Change-Id: I474b5832672e699f1eba1487f7f793bed3c1ff83 Reviewed-on: https://go-review.googlesource.com/45113 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 05 Jun, 2017 2 commits
-
-
Mikio Hara authored
Fixes golang/go#20558. Change-Id: I8813d1eadd40680bd8619bb9a6539a3c45dcd76e Reviewed-on: https://go-review.googlesource.com/44770 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
Fixes golang/go#20558. Change-Id: Iead39205e508aef4fa4cdbe5dabac96b0a60133a Reviewed-on: https://go-review.googlesource.com/44775 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 02 Jun, 2017 1 commit
-
-
Lucas Bremgartner authored
Fixes golang/go#20559 Change-Id: Ieb794badb56c6830e32028133f67223424323ea2 Reviewed-on: https://go-review.googlesource.com/44710Reviewed-by: Matt Layher <mdlayher@gmail.com> Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 29 May, 2017 1 commit
-
-
Mikio Hara authored
Unlike routing messages, there's no need to tweak the alignment for socket control messages on freebsd/386 emulation. Change-Id: Iab4a2b05080868721f7e42cebd661d445f8c1030 Reviewed-on: https://go-review.googlesource.com/44391 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 27 May, 2017 2 commits
-
-
Mikio Hara authored
This change provides message IO functionality that may support the construction of modern datagram transport protocols. The modern datagram transport protocols on a multihomed node basically need to control each packet path for traffic engineering by using information belongs to network- or link-layer implementation. In addtion, it's desirable to be able to do simultaneous transmission across multiple network- or link-layer adjacencies wihtout any additional cost. The ReadBatch and WriteBatch methods of PacketConn can be used to read and write an IO message that contains the information of network- or link-layer implementation, and read and write a batch of IO messages on Linux. The Marshal and Parse methods of ControlMessage can help to marshal and parse information contained in IO messages. Updates golang/go#3661. Change-Id: I94484e2e135f4969ddf5c2548bf6be0cc16888bf Reviewed-on: https://go-review.googlesource.com/38276 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
This change provides message IO functionality that may support the construction of modern datagram transport protocols. The modern datagram transport protocols on a multihomed node basically need to control each packet path for traffic engineering by using information belongs to network- or link-layer implementation. In addtion, it's desirable to be able to do simultaneous transmission across multiple network- or link-layer adjacencies wihtout any additional cost. The ReadBatch and WriteBatch methods of PacketConn and RawConn can be used to read and write an IO message that contains the information of network- or link-layer implementation, and read and write a batch of IO messages on Linux. The Marshal and Parse methods of ControlMessage and Header can help to marshal and parse information contained in IO messages. Updates golang/go#3661. Change-Id: Ia84a9d3bc51641406eaaf4258f2a3066945cc323 Reviewed-on: https://go-review.googlesource.com/38275 Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 26 May, 2017 4 commits
-
-
Tom Bergan authored
Case happens if Read is called after it has already returned an error previously. Verified that the new TestPipeCloseWithError test fails before this change but passes after. Updates golang/go#20501 Change-Id: I636fbb194f2d0019b0722556cc25a88da2d18e13 Reviewed-on: https://go-review.googlesource.com/44330 Run-TryBot: Tom Bergan <tombergan@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
David Lazar authored
Change-Id: I0febb967cf55118693952332bbb6f740616cfd39 Reviewed-on: https://go-review.googlesource.com/44271 Run-TryBot: David Lazar <lazard@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Mikio Hara authored
This change adds portable message IO methods of Conn, IO message and control message types, and parse methods for the types to provide those functionality to the ipv4 and ipv6 packages. With this change, the ipv4 and ipv6 packages can provide low-level (but less heap allocation and the cost of invoking system calls) API such as read and write operations for a batch of IO messages. On vanilla linux/amd64 virtual machine: BenchmarkUDP/Iter-1-2 1000000 8068 ns/op 408 B/op 14 allocs/op BenchmarkUDP/Batch-1-2 1000000 8610 ns/op 440 B/op 14 allocs/op BenchmarkUDP/Iter-2-2 500000 15390 ns/op 816 B/op 28 allocs/op BenchmarkUDP/Batch-2-2 500000 12715 ns/op 696 B/op 20 allocs/op BenchmarkUDP/Iter-4-2 200000 30763 ns/op 1632 B/op 56 allocs/op BenchmarkUDP/Batch-4-2 300000 21853 ns/op 1216 B/op 32 allocs/op BenchmarkUDP/Iter-8-2 100000 61460 ns/op 3264 B/op 112 allocs/op BenchmarkUDP/Batch-8-2 200000 39048 ns/op 2256 B/op 56 allocs/op BenchmarkUDP/Iter-16-2 50000 122408 ns/op 6528 B/op 224 allocs/op BenchmarkUDP/Batch-16-2 100000 72728 ns/op 4336 B/op 104 allocs/op BenchmarkUDP/Iter-32-2 30000 243137 ns/op 13056 B/op 448 allocs/op BenchmarkUDP/Batch-32-2 50000 141332 ns/op 8496 B/op 200 allocs/op BenchmarkUDP/Iter-64-2 20000 488125 ns/op 26112 B/op 896 allocs/op BenchmarkUDP/Batch-64-2 30000 282078 ns/op 16816 B/op 392 allocs/op BenchmarkUDP/Iter-128-2 10000 973752 ns/op 52224 B/op 1792 allocs/op BenchmarkUDP/Batch-128-2 10000 551021 ns/op 33456 B/op 776 allocs/op BenchmarkUDP/Iter-256-2 3000 1977852 ns/op 104448 B/op 3584 allocs/op BenchmarkUDP/Batch-256-2 10000 1252596 ns/op 66736 B/op 1544 allocs/op BenchmarkUDP/Iter-512-2 2000 4147495 ns/op 208896 B/op 7168 allocs/op BenchmarkUDP/Batch-512-2 3000 2175774 ns/op 121128 B/op 2612 allocs/op Change-Id: I3e08b28917b62dbea7936a86acb24e25ccaf5365 Reviewed-on: https://go-review.googlesource.com/38212 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: I951a1abc36083401d183d61c58a8186b5ce41c6c Reviewed-on: https://go-review.googlesource.com/38211Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
- 25 May, 2017 1 commit
-
-
David du Colombier authored
This test is running out of memory on Plan 9. Updates golang/go#20489. Change-Id: I79cdea9c31f396b6ef5c47474674ad736362b232 Reviewed-on: https://go-review.googlesource.com/44130Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-