summaryrefslogtreecommitdiff
path: root/src/pkg/net/timeout_test.go
AgeCommit message (Collapse)AuthorFilesLines
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-1/+1
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-9/+8
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-0/+5
2010-05-27changes &x -> x[0:] for array to slice conversionRuss Cox1-2/+2
R=gri CC=golang-dev http://codereview.appspot.com/1326042
2010-04-26net: introduce net.Error interfaceRuss Cox1-2/+2
Adds two more methods, Timeout and Temporary. Implemented by os.Errno too. The intent is to make the checks for os.EAGAIN a little less clunky. It should also let us clean up a bug that Mike Solomon pointed out: if a network server gets an "out of file descriptors" error from Accept, the listener should not stop. It will be able to check this because that error would have Temporary() == true. Also clean up some underscore names. Fixes issue 442. R=r CC=golang-dev, msolo http://codereview.appspot.com/957045
2010-03-03net: fix nil deref in testTimeout when Dial failsRuss Cox1-1/+2
Pointed out by Scott Schwartz. Fixes issue 637. R=scotts CC=golang-dev http://codereview.appspot.com/225042
2009-12-151) Change default gofmt default settings forRobert Griesemer1-14/+14
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 3rd set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180048
2009-11-17net: enforce timeouts for ReadFrom/WriteToRuss Cox1-6/+20
Fixes issue 153. R=r http://codereview.appspot.com/154177
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-4/+4
R=rsc, r http://go/go-review/1025029
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer1-3/+1
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-04gofmt-ify netRobert Griesemer1-2/+2
R=rsc http://go/go-review/1017045
2009-09-17unused importsRuss Cox1-1/+0
R=r OCL=34731 CL=34731
2009-08-12convert non-low-level non-google pkg codeRuss Cox1-2/+1
to whole-package compilation. R=r OCL=33070 CL=33101
2009-06-25Change os.Error convention:Russ Cox1-1/+1
echo back context of call in error if likely to be useful. For example, if os.Open("/etc/passwd", os.O_RDONLY) fails with syscall.EPERM, it returns as the os.Error &PathError{ Op: "open", Path: "/etc/passwd" Error: os.EPERM } which formats as open /etc/passwd: permission denied Not converted: datafmt go/... google/... regexp tabwriter template R=r DELTA=1153 (561 added, 156 deleted, 436 changed) OCL=30738 CL=30781
2009-06-09mv src/lib to src/pkgRob Pike1-0/+42
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102