An error occurred fetching the project authors.
- 30 Jul, 2012 1 commit
-
-
Brad Fitzpatrick authored
This fixes a data race (usually just harmlessly updating "GET" to "GET"), but also follows RFC 2616 Sec 5.1.1 which says that the request method is case-sensitive. Fixes #3881 R=golang-dev, rsc, dsymonds CC=golang-dev https://golang.org/cl/6446063
-
- 03 Jul, 2012 1 commit
-
-
Brad Fitzpatrick authored
And fix some govet-caught format arg issues. R=r CC=golang-dev https://golang.org/cl/6354068
-
- 02 Jul, 2012 1 commit
-
-
Dmitriy Vyukov authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6348062
-
- 04 Jun, 2012 1 commit
-
-
Brad Fitzpatrick authored
The new BenchmarkServer avoids profiling the client code by running it in a child process. R=rsc CC=golang-dev https://golang.org/cl/6260053
-
- 29 May, 2012 1 commit
-
-
Brad Fitzpatrick authored
This prevents clients from seeing RSTs and missing the response body. TCP stacks vary. The included test failed on Darwin before but passed on Linux. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6256066
-
- 23 May, 2012 1 commit
-
-
Brad Fitzpatrick authored
Fixes #3663 Updates #3540 (fixes it more) Updates #1967 (fixes it more, re-enables a test) R=golang-dev, n13m3y3r CC=golang-dev https://golang.org/cl/6213064
-
- 22 May, 2012 3 commits
-
-
Russ Cox authored
Now that we've fixed the Expect: test, this CL should be okay. ««« original CL description net/http: revert 97d027b3aa68 Revert the following change set: changeset: 13018:97d027b3aa68 user: Gustavo Niemeyer <gustavo@niemeyer.net> date: Mon Apr 23 22:00:16 2012 -0300 summary: net/http: allow clients to disable keep-alive This broke a test on Windows 64 and somebody else will have to check. R=golang-dev, r CC=golang-dev https://golang.org/cl/6112054 »»» Fixes #3540. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6228046
-
Russ Cox authored
This just eliminates some duplication. Also add a pointer to RFC 1122, in case this comes up again. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6229044
-
Brad Fitzpatrick authored
Fail more usefully, and Logf in one place instead of Errorf where an error is acceptable. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6221059
-
- 25 Apr, 2012 1 commit
-
-
Gustavo Niemeyer authored
Revert the following change set: changeset: 13018:97d027b3aa68 user: Gustavo Niemeyer <gustavo@niemeyer.net> date: Mon Apr 23 22:00:16 2012 -0300 summary: net/http: allow clients to disable keep-alive This broke a test on Windows 64 and somebody else will have to check. R=golang-dev, r CC=golang-dev https://golang.org/cl/6112054
-
- 24 Apr, 2012 1 commit
-
-
Gustavo Niemeyer authored
Fixes #3540. R=golang-dev, bradfitz, gustavo CC=golang-dev https://golang.org/cl/5996044
-
- 22 Feb, 2012 1 commit
-
-
Brad Fitzpatrick authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5688063
-
- 06 Feb, 2012 1 commit
-
-
Patrick Mylund Nielsen authored
since the real type is not inferred. Fixes #2885. R=golang-dev, dsymonds, bradfitz CC=golang-dev https://golang.org/cl/5633045
-
- 19 Jan, 2012 2 commits
-
-
Brad Fitzpatrick authored
Fix originally from rogpeppe in 5414048 but was rolled back due to test breakage. This CL makes the test more robust to order of operations. Fixes #2480 again. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5536072
-
Brad Fitzpatrick authored
Previously, a timeout (in int64 nanoseconds) applied to a granularity even smaller than one operation: a 100 byte read with a 1 second timeout could take 100 seconds, if the bytes all arrived on the network 1 second apart. This was confusing. Rather than making the timeout granularity be per-Read/Write, this CL makes callers set an absolute deadline (in time.Time) after which operations will fail. This makes it possible to set deadlines at higher levels, without knowing exactly how many read/write operations will happen in e.g. reading an HTTP request. Fixes #2723 R=r, rsc, dave CC=golang-dev https://golang.org/cl/5555048
-
- 17 Jan, 2012 1 commit
-
-
Gustavo Niemeyer authored
Duplicated fields from URL were dropped so that its behavior is simple and expected when being stringified and when being operated by packages like http. Most of the preserved fields are in unencoded form, except for RawQuery which continues to exist and be more easily handled via url.Query(). The RawUserinfo field was also replaced since it wasn't practical to use and had limitations when operating with empty usernames and passwords which are allowed by the RFC. In its place the Userinfo type was introduced and made accessible through the url.User and url.UserPassword functions. What was previous built as: url.URL{RawUserinfo: url.EncodeUserinfo("user", ""), ...} Is now built as: url.URL{User: url.User("user"), ...} R=rsc, bradfitz, gustavo CC=golang-dev https://golang.org/cl/5498076
-
- 20 Dec, 2011 1 commit
-
-
Rob Pike authored
Lots of panics go away. Also fix a name error in html/template. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5498045
-
- 12 Dec, 2011 1 commit
-
-
David Symonds authored
R=adg, r, rsc CC=golang-dev https://golang.org/cl/5475069
-
- 08 Dec, 2011 1 commit
-
-
David Symonds authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5465043
-
- 30 Nov, 2011 1 commit
-
-
Russ Cox authored
R=bradfitz, gri, r, dsymonds CC=golang-dev https://golang.org/cl/5390042
-
- 14 Nov, 2011 1 commit
-
-
Russ Cox authored
- syscall (not os) now defines the Errno type. - the low-level assembly functions Syscall, Syscall6, and so on return Errno, not uintptr - syscall wrappers all return error, not uintptr. R=golang-dev, mikioh.mikioh, r, alex.brainman CC=golang-dev https://golang.org/cl/5372080
-
- 09 Nov, 2011 1 commit
-
-
Brad Fitzpatrick authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5372044
-
- 08 Nov, 2011 1 commit
-
-
Rob Pike authored
R=rsc CC=golang-dev https://golang.org/cl/5345045
-
- 03 Nov, 2011 3 commits
-
-
Brad Fitzpatrick authored
Part of http diet plan. More of the lesser-used and newcomer-misleading parts of http will move here. R=r, rsc CC=golang-dev https://golang.org/cl/5336049
-
Vincent Vanackere authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5334050
-
Rob Pike authored
This is Go 1 package renaming CL #3. This one merely moves the source; the import strings will be changed after the next weekly release. This one moves pieces into net. http -> net/http http/cgi -> net/http/cgi http/fcgi -> net/http/fcgi http/pprof -> net/http/pprof http/httptest -> net/http/httptest mail -> net/mail rpc -> net/rpc rpc/jsonrpc -> net/rpc/jsonrpc smtp -> net/smtp url -> net/url Also remove rand (now math/rand) from NOTEST - it has a test. The only edits are in Makefiles and deps.bash. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5335048
-
- 02 Nov, 2011 1 commit
-
-
Russ Cox authored
R=golang-dev, iant CC=golang-dev https://golang.org/cl/5322051
-
- 18 Oct, 2011 2 commits
-
-
Andrew Gerrand authored
R=golang-dev, rsc, rsc CC=golang-dev https://golang.org/cl/5283052
-
Adam Langley authored
tls.Conn.Close() didn't close the underlying connection and tried to do a handshake in order to send the close notify alert. http didn't look for errors from the TLS handshake. Fixes #2281. R=bradfitz CC=golang-dev https://golang.org/cl/5283045
-
- 15 Oct, 2011 1 commit
-
-
Brad Fitzpatrick authored
Previously, if an http.Handler didn't fully consume a Request.Body before returning and the request and the response from the handler indicated no reason to close the connection, the server would read an unbounded amount of the request's unread body to advance past the request message to find the next request's header. That was a potential DoS. With this CL there's a threshold under which we read (currently 256KB) in order to keep the connection in keep-alive mode, but once we hit that, we instead switch into a "Connection: close" response and don't read the request body. Fixes #2093 (along with number of earlier CLs) R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5268043
-
- 13 Oct, 2011 1 commit
-
-
Mikkel Krautz authored
Fixes #1009. R=adg, rsc CC=golang-dev https://golang.org/cl/5262041
-
- 10 Oct, 2011 1 commit
-
-
Brad Fitzpatrick authored
R=rsc CC=golang-dev https://golang.org/cl/5228041
-
- 28 Sep, 2011 1 commit
-
-
Brad Fitzpatrick authored
Fixes #2312 R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5143049
-
- 21 Sep, 2011 1 commit
-
-
Brad Fitzpatrick authored
It's currently broken and disabled, pending a fix for Issue 2281. R=golang-dev, adg CC=golang-dev https://golang.org/cl/5092045
-
- 20 Sep, 2011 1 commit
-
-
Brad Fitzpatrick authored
Fixes #2263 R=golang-dev, adg CC=golang-dev https://golang.org/cl/5076042
-
- 25 Aug, 2011 1 commit
-
-
Dave Cheney authored
RFC2616 says servers should return this status code when rejecting requests that are too large. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.14 R=bradfitz CC=golang-dev https://golang.org/cl/4962041
-
- 24 Aug, 2011 1 commit
-
-
Brad Fitzpatrick authored
My theory is that suse has larger TCP buffer sizes by default. I now check over 100MB, rather than over 2MB. 100MB is ~halfway between the 1MB limit and the 200MB request that's attempted. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4926048
-
- 23 Aug, 2011 1 commit
-
-
Brad Fitzpatrick authored
This adds http.MaxBytesReader, similar to io.LimitReader, but specific to http, and for preventing a class of DoS attacks. This also makes the 10MB ParseForm limit optional (if not already set by a MaxBytesReader), documents it, and also adds "PUT" as a valid verb for parsing forms in the request body. Improves issue 2093 (DoS protection) Fixes #2165 (PUT form parsing) R=golang-dev, adg CC=golang-dev https://golang.org/cl/4921049
-
- 17 Aug, 2011 1 commit
-
-
Rob Pike authored
This is just moving the URL code from package http into its own package, which has been planned for a while. Besides clarity, this also breaks a nascent dependency cycle the new template package was about to introduce. Add a gofix module, url, and use it to generate changes outside http and url. Sadness about the churn, gladness about some of the naming improvements. R=dsymonds, bradfitz, rsc, gustavo, r CC=golang-dev https://golang.org/cl/4893043
-
- 09 Aug, 2011 1 commit
-
-
Brad Fitzpatrick authored
This addresses the biggest DoS in issue 2093 R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4841050
-