- 30 Mar, 2013 6 commits
-
-
Albert Strasheim authored
R=golang-dev, bradfitz, minux.ma CC=golang-dev https://golang.org/cl/8193043
-
David du Colombier authored
Add missing getgoextlinkenabled(void) declaration in Plan 9 libc.h. This function was added as part of CL #8183043. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/8191043
-
Andrey Mirtchovski authored
R=golang-dev, minux CC=golang-dev https://golang.org/cl/8174045
-
Mikio Hara authored
This CL ensures we use the correct socket options for passive and active open sockets. For the passive open sockets created by Listen functions, additional SO_REUSEADDR, SO_REUSEPORT options are required for the quick service restart and/or multicasting. For the active open sockets created by Dial functions, no additional options are required. R=golang-dev, dave, bradfitz, rsc CC=golang-dev https://golang.org/cl/7795050
-
Dave Cheney authored
R=dsymonds, mikioh.mikioh CC=golang-dev https://golang.org/cl/8094047
-
Brad Fitzpatrick authored
"There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." The HTTP server code already strips Expect: 100-continue on requests, so httputil.ReverseProxy should be unaffected, but some servers send unsolicited HTTP/1.1 100 Continue responses, so we need to skip over them if they're seen to avoid getting off-by-one on Transport requests/responses. This does change the behavior of people who were using Client or Transport directly and explicitly setting "Expect: 100-continue" themselves, but it didn't work before anyway. Now instead of the user code seeing a 100 response and then things blowing up, now it basically works, except the Transport will still blast away the full request body immediately. That's the part that needs to be finished to close this issue. This is the safe quick fix. Update #3665 R=golang-dev, dsymonds, dave, jgrahamc CC=golang-dev https://golang.org/cl/8166045
-
- 29 Mar, 2013 17 commits
-
-
Ian Lance Taylor authored
Change build system to set GO_EXTLINK_ENABLED=0 by default for OS X 10.6, since the system linker has a bug and can not handle the object files generated by 6l. Fixes #5130. R=golang-dev, r CC=golang-dev https://golang.org/cl/8183043
-
Robert Obryk authored
This benchmark verifies that CL #8173043 reduces time spent sliding the Buffer's contents. Results without and with CL #8173043 applied: benchmark old ns/op new ns/op delta BenchmarkBufferFullSmallReads 755336 175054 -76.82% R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8174043
-
Brad Fitzpatrick authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/8176043
-
Rob Pike authored
Do a little reformatting too. Fixes #5152. R=golang-dev, bradfitz, gri CC=golang-dev https://golang.org/cl/8157044
-
Brad Fitzpatrick authored
For the future. Update #5147 R=khr, r CC=golang-dev https://golang.org/cl/8165044
-
Brad Fitzpatrick authored
benchmark old ns/op new ns/op delta BenchmarkBufferNotEmptyWriteRead 848416 819983 -3.35% Update #5154 R=golang-dev, gri, robryk CC=golang-dev https://golang.org/cl/8173043
-
Brad Fitzpatrick authored
Also added a new benchmark from the same test: benchmark old ns/op new ns/op delta BenchmarkBufferNotEmptyWriteRead 2643698 709189 -73.17% Fixes #5154 R=golang-dev, r, gri CC=golang-dev https://golang.org/cl/8164043
-
Keith Randall authored
Fixes #5098 R=minux.ma, bradfitz, khr, rsc CC=golang-dev https://golang.org/cl/7746045
-
Elias Naur authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7548045
-
Brad Fitzpatrick authored
These only show up if GOTRACEBACK=2 Update #5005 R=golang-dev, fullung CC=golang-dev https://golang.org/cl/8156044
-
Keith Randall authored
Used by CL 8056043 for fast string equals. R=bradfitz CC=golang-dev https://golang.org/cl/8102044
-
Mikio Hara authored
Update #4234. Update #4501. R=golang-dev, dave, bradfitz CC=golang-dev https://golang.org/cl/8129043
-
Mikio Hara authored
R=golang-dev, dave CC=golang-dev https://golang.org/cl/8073044
-
Mikio Hara authored
Adds the missing wildcard port assignment description to ListenUDP. Also updates the wildcard port description on ListenTCP. R=golang-dev, dave, r CC=golang-dev https://golang.org/cl/8063043
-
Mikio Hara authored
Closes the API documentation gap between platforms. R=golang-dev, r CC=golang-dev https://golang.org/cl/8086043
-
Mikio Hara authored
Also removes redundant tests that run Go 1.0 non-IPv6 support Windows code on IPv6 enabled Windows kernels. R=alex.brainman, golang-dev, bradfitz, dave CC=golang-dev https://golang.org/cl/7812052
-
Brad Fitzpatrick authored
Fixes #5005 R=golang-dev, r CC=golang-dev https://golang.org/cl/8127043
-
- 28 Mar, 2013 14 commits
-
-
Robert Griesemer authored
With the faster strings package, the difference between the specialized code and strings.Split is in the noise: benchmark old ns/op new ns/op delta BenchmarkPrint 16724291 16686729 -0.22% (Measured on a Mac Pro, 2.8GHz Quad-core Intel Xeon, 4GB 800 MHz DDR2, Mac OS X 10.8.3) R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8100044
-
Ian Lance Taylor authored
Fixes #5150. R=golang-dev, franciscossouza CC=golang-dev https://golang.org/cl/8120043
-
Brad Fitzpatrick authored
Saves both the textproto.Reader allocation, and its internal scratch buffer growing. benchmark old ns/op new ns/op delta BenchmarkServerFakeConnWithKeepAliveLite 10324 10149 -1.70% benchmark old allocs new allocs delta BenchmarkServerFakeConnWithKeepAliveLite 19 17 -10.53% benchmark old bytes new bytes delta BenchmarkServerFakeConnWithKeepAliveLite 1559 1492 -4.30% R=golang-dev, r, gri CC=golang-dev https://golang.org/cl/8094046
-
Robert Griesemer authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/8122043
-
Carl Shapiro authored
Updates #5134 R=golang-dev, bradfitz, cshapiro, daniel.morsing, ality, iant CC=golang-dev https://golang.org/cl/8022044
-
Brad Fitzpatrick authored
Removes another per-request allocation. Also makes the code more readable, IMO. And more testable. benchmark old ns/op new ns/op delta BenchmarkServerFakeConnWithKeepAliveLite 10539 10324 -2.04% benchmark old allocs new allocs delta BenchmarkServerFakeConnWithKeepAliveLite 20 19 -5.00% benchmark old bytes new bytes delta BenchmarkServerFakeConnWithKeepAliveLite 1609 1559 -3.11% R=golang-dev, gri CC=golang-dev https://golang.org/cl/8118044
-
Brad Fitzpatrick authored
We already depend on strings in this file, so use it. Plus strings.Index will be faster than a manual loop once issue 3751 is finished. R=golang-dev, khr CC=golang-dev https://golang.org/cl/8116043
-
Robert Griesemer authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8113043
-
Brad Fitzpatrick authored
A chunkWriter and a response are 1:1. Make them contiguous in memory and save an allocation. benchmark old ns/op new ns/op delta BenchmarkServerFakeConnWithKeepAliveLite 10715 10539 -1.64% benchmark old allocs new allocs delta BenchmarkServerFakeConnWithKeepAliveLite 21 20 -4.76% benchmark old bytes new bytes delta BenchmarkServerFakeConnWithKeepAliveLite 1626 1609 -1.05% R=golang-dev, gri CC=golang-dev https://golang.org/cl/8114043
-
Brad Fitzpatrick authored
benchmark old ns/op new ns/op delta BenchmarkServerFakeConnWithKeepAliveLite 11031 10689 -3.10% benchmark old allocs new allocs delta BenchmarkServerFakeConnWithKeepAliveLite 23 21 -8.70% benchmark old bytes new bytes delta BenchmarkServerFakeConnWithKeepAliveLite 1668 1626 -2.52% R=golang-dev, gri CC=golang-dev https://golang.org/cl/8110044
-
Robert Griesemer authored
- removed gratuitous empty lines that creeped into command line output - changed comment color to a dark green so that links don't visually melt into them - removed some TODOs - updated doc.go R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8108044
-
Brad Fitzpatrick authored
Add more tests around the various orders handlers can access and flush response headers. Also clarify the documentation on fields of response and chunkWriter. While there, remove an allocation (a header clone) for simple handlers. benchmark old ns/op new ns/op delta BenchmarkServerFakeConnWithKeepAliveLite 15245 14966 -1.83% benchmark old allocs new allocs delta BenchmarkServerFakeConnWithKeepAliveLite 24 23 -4.17% benchmark old bytes new bytes delta BenchmarkServerFakeConnWithKeepAliveLite 1717 1668 -2.85% R=golang-dev, gri CC=golang-dev https://golang.org/cl/8101043
-
Ian Lance Taylor authored
R=golang-dev, daniel.morsing CC=golang-dev https://golang.org/cl/8070043
-
Robert Griesemer authored
Fixes regression introduced by CL 7860049. R=golang-dev, kamil.kisiel, dave CC=golang-dev https://golang.org/cl/8069044
-
- 27 Mar, 2013 3 commits
-
-
Rob Pike authored
Analogous to the one for .go files, it's for .s only and is protected by the verbose flag. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8030046
-
Rob Pike authored
R=golang-dev, alberto.garcia.hierro CC=golang-dev https://golang.org/cl/7861046
-
Rob Pike authored
This is a totally mechanical change. Errors are reported for the beginning of the statement, not the end, so the errchk markers need to be on the opening brace, not the closing one. It seems this test was never run. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7746050
-