summaryrefslogtreecommitdiff
path: root/src/pkg/net/server_test.go
AgeCommit message (Collapse)AuthorFilesLines
2011-06-03Imported Upstream version 2011.06.02Ondřej Surý1-4/+7
2011-05-23Imported Upstream version 2011.05.22Ondřej Surý1-5/+32
2011-04-28Imported Upstream version 2011.04.27Ondřej Surý1-5/+3
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-4/+6
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-4/+17
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-0/+9
2010-05-27changes &x -> x[0:] for array to slice conversionRuss Cox1-3/+3
R=gri CC=golang-dev http://codereview.appspot.com/1326042
2010-04-26net: introduce net.Error interfaceRuss Cox1-6/+6
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-02-25strings: delete Runes, BytesRuss Cox1-1/+1
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
2010-02-22net: disable UDP server testRuss Cox1-3/+6
has been flaking on various architectures. not sure why, but doesn't seem to be Go's fault. Fixes issue 617. R=r CC=golang-dev http://codereview.appspot.com/217093
2009-12-151) Change default gofmt default settings forRobert Griesemer1-69/+69
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-12-04net: more fiddling with the udp test.Russ Cox1-1/+1
i don't know why the timeout needs to be so big. R=r http://codereview.appspot.com/165063
2009-12-03net: turn off empty packet test by defaultRuss Cox1-2/+9
Fixes issue 374. R=r http://codereview.appspot.com/166053
2009-12-02net: test and fix support for 0-length datagram packets.Russ Cox1-24/+32
Fixes issue 274. R=r CC=jonathan.r.hudson http://codereview.appspot.com/163072 Committer: Russ Cox <rsc@golang.org>
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox1-2/+2
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-17net: enforce timeouts for ReadFrom/WriteToRuss Cox1-1/+1
Fixes issue 153. R=r http://codereview.appspot.com/154177
2009-11-10net: disable more ipv6 testsRuss Cox1-6/+10
R=agl, agl1 CC=golang-dev http://codereview.appspot.com/153050
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-3/+3
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-17/+17
R=rsc, r http://go/go-review/1025029
2009-11-04gofmt-ify netRobert Griesemer1-8/+8
R=rsc http://go/go-review/1017045
2009-11-02package net cleanupRuss Cox1-5/+76
added ReadFrom/WriteTo for packet protocols like UDP. simplified the net.Conn interface. added new net.PacketConn interface for packet protocols. implemented proper UDP listener. cleaned up LocalAddr/RemoteAddr methods - cache in netFD. threw away various unused methods. an interface change: introduced net.Addr as a network address interface, to avoid conversion of UDP host:port to string and back for every ReadFrom/WriteTo sequence. another interface change: since signature of Listener.Accept was changing anyway, dropped the middle return value, because it is available as c.RemoteAddr(). (the Accept signature predates the existence of that method.) Dial and Listen still accept strings, but the proto-specific versions DialTCP, ListenUDP, etc. take net.Addr instead. because the generic Dial didn't change and because no one calls Accept directly (only indirectly via the http server), very little code will be affected by these interface changes. design comments welcome. R=p CC=go-dev, r http://go/go-review/1018017
2009-09-17unused importsRuss Cox1-1/+0
R=r OCL=34731 CL=34731
2009-09-15more "declared and not used".Russ Cox1-1/+1
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-08-12convert non-low-level non-google pkg codeRuss Cox1-3/+2
to whole-package compilation. R=r OCL=33070 CL=33101
2009-06-29io.StringBytes -> strings.BytesRuss Cox1-1/+1
io.ByteBuffer -> bytes.Buffer left io.ByteBuffer stub around for now, for protocol compiler. R=r OCL=30861 CL=30872
2009-06-17add Addr() string to net.Listener interface.Russ Cox1-9/+16
use it to avoid use of fixed ports in tests. convert google/net/rpc to gotest R=r DELTA=523 (275 added, 229 deleted, 19 changed) OCL=30458 CL=30460
2009-06-09mv src/lib to src/pkgRob Pike1-0/+93
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102