- 12 Mar, 2011 4 commits
-
-
Ian Lance Taylor authored
R=rsc CC=golang-dev https://golang.org/cl/4275043
-
Ian Lance Taylor authored
The loop always makes an extra system call. It only makes a difference if more than 100 goroutines started waiting for something to happen on a network file descriptor since the last time the pipe was drained, which is unlikely since we will be woken up the first time a goroutine starts waiting. If we don't drain the pipe this time, we'll be woken up again right away and can drain again. R=rsc CC=golang-dev https://golang.org/cl/4275042
-
Rob Pike authored
Add a benchmark. BenchmarkEndToEndPipe gives 14.3microseconds/op before, 13.1microseconds/op after, or about 76e3 round trips per second through the kernel. With a bytes buffer, and therefore no system calls for I/O, the numbers go to 7.3microseconds/op, or about 137e3 round trips per second. R=rsc CC=golang-dev https://golang.org/cl/4279045
-
Robert Griesemer authored
- removed uses of global variables - minor cleanups R=r CC=golang-dev https://golang.org/cl/4277044
-
- 11 Mar, 2011 14 commits
-
-
Robert Griesemer authored
R=rsc CC=golang-dev https://golang.org/cl/4278043
-
Robert Griesemer authored
R=r, rsc1 CC=golang-dev https://golang.org/cl/4291042
-
Russ Cox authored
R=golang-dev, iant, r CC=golang-dev https://golang.org/cl/4239079
-
Russ Cox authored
R=r, dsymonds CC=golang-dev https://golang.org/cl/4273045
-
Russ Cox authored
R=golang-dev, rog, bradfitzwork, r CC=golang-dev https://golang.org/cl/4243072
-
Russ Cox authored
R=ken2, ken3 CC=golang-dev https://golang.org/cl/4259064
-
Russ Cox authored
R=gri, r, r2 CC=golang-dev https://golang.org/cl/4249065
-
Brad Fitzpatrick authored
Transport.Do -> RoundTripper.RoundTrip This makes way for a subsequent CL to export the currently private RoundTripper implementation as struct Transport. R=rsc, r CC=golang-dev https://golang.org/cl/4286043
-
Robert Griesemer authored
First version. Handles scope analysis only at the moment. R=rsc, r, eds CC=golang-dev https://golang.org/cl/4259065
-
Brad Fitzpatrick authored
Fixes #1602 R=rsc, petar-m CC=golang-dev https://golang.org/cl/4284043
-
Russ Cox authored
This makes it possible to build a package twice and get the same bytes both times. R=r, dsymonds, r2 CC=golang-dev https://golang.org/cl/4248077
-
Andrew Gerrand authored
.hgtags, release.html: tag current weekly as release.r56 R=r, rsc CC=golang-dev https://golang.org/cl/4281041
-
Robert Griesemer authored
Make ReadAll use the same mechanism as ReadFile. R=r CC=golang-dev https://golang.org/cl/4279041
-
Robert Griesemer authored
Print a newline after each map entry; similar to the style used for slices and structs. R=r, r2 CC=golang-dev https://golang.org/cl/4274042
-
- 10 Mar, 2011 14 commits
-
-
Robert Griesemer authored
Also removed a TODO (AST nodes have been restructured a while ago). R=r CC=golang-dev https://golang.org/cl/4245077
-
Robert Griesemer authored
Functionality was only present for debuggging and now is available in gocheck where is makes more sense. R=rsc CC=golang-dev https://golang.org/cl/4239078
-
Rob Pike authored
Fixes #1601. R=rsc CC=golang-dev https://golang.org/cl/4249070
-
Brad Fitzpatrick authored
All tests are now localhost only. R=rsc CC=golang-dev https://golang.org/cl/4271042
-
Brad Fitzpatrick authored
More reliable. R=rsc CC=golang-dev https://golang.org/cl/4249068
-
Brad Fitzpatrick authored
ResponseWriter.RemoteAddr() string -> Request.RemoteAddr string ResponseWriter.UsingTLS() bool -> Request.TLS *tls.ConnectionState R=rsc, bradfitzwork CC=gburd, golang-dev https://golang.org/cl/4248075
-
Adam Langley authored
(No code changes, Americanization only.) R=rsc, bradfitzwork CC=golang-dev https://golang.org/cl/4250075
-
Brad Fitzpatrick authored
R=agl, agl1 CC=golang-dev, rsc https://golang.org/cl/4248078
-
Adam Langley authored
R=rsc, bradfitzwork CC=golang-dev https://golang.org/cl/4244066
-
Adam Langley authored
R=rsc CC=golang-dev https://golang.org/cl/4240104
-
Adam Langley authored
R=rsc, cw CC=golang-dev https://golang.org/cl/4253073
-
Rob Pike authored
by bogus data, or are in any case recoverable. Fixes #1598. R=rsc CC=golang-dev https://golang.org/cl/4240101
-
Rob Pike authored
R=adg CC=golang-dev https://golang.org/cl/4248076
-
Rob Pike authored
Add discussion of getters. Add example using a map as a set. R=golang-dev, gri, adg, iant CC=golang-dev https://golang.org/cl/4240100
-
- 09 Mar, 2011 8 commits
-
-
Ian Lance Taylor authored
This is to make it easier to support Solaris syslog. On Solaris syslog messages are sent via STREAMS using putmsg to /dev/conslog. The putmsg call uses a a control buffer of type log_cdtl and a data buffer which is the message, and it is in general a big mess. This CL just splits out the Unix domain support so that Solaris can use a different mechanism. I do not propose to implement the Solaris support today. This split will make it possible for gccgo to just call the libc function for now. R=r, rsc CC=golang-dev https://golang.org/cl/4261061
-
Brad Fitzpatrick authored
The Flush functionality wasn't removed, but now you have to test if your ResponseWriter is also a Flusher: func ServeHTTP(rw http.ResponseWriter, req *http.Request) { if f, ok := rw.(http.Flusher); ok { f.Flush() } } R=rsc, bradfitzwork CC=gburd, golang-dev https://golang.org/cl/4239077
-
Rob Pike authored
Was a mysterious holdover from an attempt to fix a problem long-resolved, I think. R=rsc, r2 CC=golang-dev https://golang.org/cl/4243066
-
Roger Peppe authored
When writing custom scanners, I found that Token itself was rarely useful, as I did not always want to stop at white space. This change makes it possible to stop at any class of characters while reusing the buffer within State. (also fix a bug in Token) R=r, r2 CC=golang-dev https://golang.org/cl/4243055
-
Brad Fitzpatrick authored
Caller code needs to change: rw.SetHeader("Content-Type", "text/plain") to: rw.Header().Set("Content-Type", "text/plain") This now permits returning multiple headers with the same name using Add: rw.Header().Add("Set-Cookie", "..") rw.Header().Add("Set-Cookie", "..") This patch also fixes serialization of headers, removing newline characters. Fixes #488 Fixes #914 R=rsc CC=gburd, golang-dev https://golang.org/cl/4239076
-
Lorenzo Stoakes authored
Trivial fix to '// n' comments against etype enum in go.h, as these have got out of sync. R=golang-dev, gri CC=golang-dev https://golang.org/cl/4240097
-
Russ Cox authored
Fixes the broken linux/amd64 build. The symbol table, itself a symbol, was having its size rounded up to the nearest word boundary. If the rounding add >7 zero bytes then it confused the debug/gosym symbol table parser. So you've got a 1/8 chance to hit the bug on an amd64 system. Just started in the recent change because I fixed the rounding to round to word boundary instead of to 4-byte boundary. R=r CC=golang-dev https://golang.org/cl/4241056
-
David Anderson authored
Note that, while the final argument of mount(2) is a void*, in practice all filesystem implementations treat it as a string of comma-separated mount options. R=bradfitzgo, bradfitzwork CC=golang-dev https://golang.org/cl/4247070
-