- 06 Mar, 2013 2 commits
-
-
Rob Pike authored
R=golang-dev, iant CC=golang-dev https://golang.org/cl/7489044
-
Brad Fitzpatrick authored
Previously the HTTP client's (*Response).Body.Close would try to keep reading until EOF, hoping to reuse the keep-alive HTTP connection, but the EOF might never come, or it might take a long time. Now we immediately close the TCP connection if we haven't seen EOF. This shifts the burden onto clients to read their whole response bodies if they want the advantage of reusing TCP connections. In the future maybe we could decide on heuristics to read some number of bytes for some max amount of time before forcefully closing, but I'd rather not for now. Statistically, touching this code makes things regress, so I wouldn't be surprised if this introduces new bugs, but all the tests pass, and I think the code is simpler now too. Maybe. Please test your HTTP client code before Go 1.1. Fixes #3672 R=golang-dev, adg CC=golang-dev https://golang.org/cl/7419050
-
- 05 Mar, 2013 12 commits
-
-
Nigel Tao authored
necessarily contain all components. Fixes #4975. R=r, minux.ma, bradfitz CC=golang-dev https://golang.org/cl/7469043
-
David Symonds authored
The only check so far is for self-assignments of the form "expr = expr", but even that found one instance in the standard library. R=r, adg, mtj, rsc CC=golang-dev https://golang.org/cl/7455048
-
Rob Pike authored
Fixes #4980. R=golang-dev, rsc, dsymonds CC=golang-dev https://golang.org/cl/7479044
-
Rob Pike authored
Drop the phrase "reference types", which has caused confusion. Add a section about 2D arrays, a common newbie question. R=golang-dev, cespare, adg, rsc CC=golang-dev https://golang.org/cl/7423051
-
Russ Cox authored
broke arm garbage collector traceback_arm fails with a missing pc. It needs CL 7494043. But that only makes the build break later, this time with "invalid freelist". Roll back until it can be fixed correctly. ««« original CL description runtime: restrict stack root scan to locals and arguments R=rsc CC=golang-dev https://golang.org/cl/7301062 »»» R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7493044
-
Robert Griesemer authored
- run time is limited if -short is set - also added missing TODO to unrelated file return.go R=r CC=golang-dev https://golang.org/cl/7448052
-
Joel Sing authored
On OpenBSD 5.2, calling getsockname on an unbound Unix domain socket results in a successful syscall, however the AF is unset and the length is returned as zero. This has been changed to more portable behaviour, which will be included in the OpenBSD 5.3 release. For now, work around this by treating a successful getsockname() call that returns a family of AF_UNSPEC and length of zero as a AF_UNIX socket. Makes TestPassFD work on OpenBSD 5.2. Fixes #4956. R=golang-dev, minux.ma, rsc, mikioh.mikioh CC=golang-dev https://golang.org/cl/7449046
-
Dmitriy Vyukov authored
It will be handy for network poller. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7429048
-
Dmitriy Vyukov authored
Fixes #4893. Actually it's fixed by cl/7314062 (improved scheduler), just submitting the test. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7422054
-
Dmitriy Vyukov authored
In preparation for integrated network poller (https://golang.org/cl/7326051), this is required to handle deadlines. R=golang-dev, remyoudompheng, rsc CC=golang-dev https://golang.org/cl/7446047
-
Carl Shapiro authored
R=rsc CC=golang-dev https://golang.org/cl/7301062
-
David Symonds authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/7431054
-
- 04 Mar, 2013 19 commits
-
-
David Symonds authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/7416050
-
Robert Griesemer authored
Implementation closely based on Russ' CL 7440047. Future work: The error messages could be better (e.g., instead of "missing return" it might say "missing return (no default in switch)", etc.). R=adonovan, rsc CC=golang-dev https://golang.org/cl/7437049
-
Russ Cox authored
Fixes #65. R=ken2 CC=golang-dev https://golang.org/cl/7441049
-
Robert Griesemer authored
The only functional change is the new section on terminating statements. There is a minor syntax rewrite (not change) of function declarations to make it easier to refer to the notion of a function from all places where it is used (function decls, method decls, and function literals). Includes some minor fixes/additions of missing links. Based closely on Russ' proposal. Fixes #65. R=rsc, r, iant, ken, bradfitz CC=golang-dev https://golang.org/cl/7415050
-
Robert Griesemer authored
Fixes #4976. R=r CC=golang-dev https://golang.org/cl/7421050
-
Dominik Honnef authored
R=golang-dev, adonovan, bradfitz, cw, patrick.allen.higgins, sameer, ugorji CC=golang-dev https://golang.org/cl/7373051
-
Shenghou Ma authored
to reduce compile time memory/stack usage. Update #4970 $ go test -c ../test/bench/go1 before: 0.36user 0.07system 0:00.44elapsed 100%CPU (0avgtext+0avgdata 540720maxresident)k 0inputs+19840outputs (0major+56451minor)pagefaults 0swaps after: 0.33user 0.05system 0:00.39elapsed 100%CPU (0avgtext+0avgdata 289936maxresident)k 0inputs+19864outputs (0major+29615minor)pagefaults 0swaps And stack usage is reduced to below 1MiB. R=golang-dev, r, dave CC=golang-dev https://golang.org/cl/7436050
-
Brad Fitzpatrick authored
Fixes #4969 R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7456049
-
Russ Cox authored
Using -import_runtime_cgo would have worked great except that it doesn't get passed to the second invocation of cgo, and that's the one that writes the relevant file. Fixes ARM build on systems with a different dynamic linker than the one 5l assumes (like Gentoo). R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7432048
-
Brad Fitzpatrick authored
Use a 17 MB payload instead of a 1 MB payload, since OS X can apparently buffer up to 16 MB in its pipes. Fixes #4958 maybe R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7453049
-
Daniel Morsing authored
Fixes #4941. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7415051
-
Jan Ziak authored
If the constant CollectStats is non-zero and GOGCTRACE=1 the garbage collector will print basic statistics about executed GC instructions. R=golang-dev, dvyukov CC=golang-dev, rsc https://golang.org/cl/7413049
-
Rémy Oudompheng authored
Fixes #4882. Fixes #4936. Fixes #4937. R=golang-dev, dave, daniel.morsing, rsc CC=golang-dev https://golang.org/cl/7432044
-
Jan Ziak authored
R=golang-dev, dvyukov CC=golang-dev https://golang.org/cl/7435053
-
Rémy Oudompheng authored
Fixes #4932. R=golang-dev, dave, rsc CC=golang-dev https://golang.org/cl/7437043
-
Russ Cox authored
R=golang-dev, remyoudompheng, bradfitz CC=golang-dev https://golang.org/cl/7419049
-
Russ Cox authored
Don't check out the repository if we're just going to fail everything. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7453048
-
Stefan Nilsson authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7450052
-
Volker Dobler authored
The old code would decode the palette only for 8-bit images during a DecodeConfig. This CL keeps the behavior for 8-bit images and sets up the decoded palette also for 1, 2 and 4-bit images. Fixes #4279. R=golang-dev, nigeltao CC=golang-dev https://golang.org/cl/7421048
-
- 03 Mar, 2013 6 commits
-
-
Andrew Gerrand authored
Fixes the App Engine version of godoc. The other fix is to duplicate this code inside appinit.go. I think initHandlers is the right place to put the strings.Split call, as the notesToShow var is used by docServer, which is what initHandlers sets up. R=dsymonds CC=golang-dev https://golang.org/cl/7434044
-
Rob Pike authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7423050
-
Mikio Hara authored
Fixes build on Plan 9 and Windows. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7454049
-
Mikio Hara authored
R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7429049
-
Mikio Hara authored
Also replaces testing.Errof with testing.Fatalf, make use of ICMP mock. R=golang-dev, dave CC=golang-dev https://golang.org/cl/7308058
-
Mikio Hara authored
R=golang-dev, dave CC=golang-dev https://golang.org/cl/7433044
-
- 02 Mar, 2013 1 commit
-
-
Shenghou Ma authored
1. when executing a unsupported VFP instruction, the NetBSD kernel somehow doesn't report SIGILL, and instead just spin and spin, we add a alarm(2) to detect this case (albeit this is a kernel bug). 2. NetBSD/ARM's VFP11 support is not complete, so temporarily disable it. 3. The default gcc shipped with NetBSD-current mis-optimizes our code at -O2, so lower the optimization level to -O1 on NetBSD/ARM. R=dave, rsc CC=golang-dev https://golang.org/cl/7286044
-