Mikio Hara
33f3dffa7c
net: allow TestDialFailPDLeak run in long-mode test
...
R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/12917050
2013-08-24 22:05:14 +09:00
Joel Sing
fce0608561
net: dragonfly support
...
Make the net package build and work on dragonfly.
R=bradfitz
CC=golang-dev
https://golang.org/cl/13173044
2013-08-24 02:18:22 +10:00
Rob Pike
0bc7e79afd
all: excise some warts found by vet -shadow
...
These are not erroneous, just poor or confusing.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/10448043
2013-06-20 16:14:40 -07:00
Alex Brainman
ca6b1f3eeb
net: do not call syscall.Bind twice on windows
...
Fixes #5355 .
R=golang-dev, mikioh.mikioh, bradfitz, r
CC=golang-dev
https://golang.org/cl/8966046
2013-04-30 17:47:39 -07:00
Mikio Hara
41451dd92b
net: enable test for runtime.PollDesc leak
...
Update #5219 .
R=golang-dev, dvyukov, r
CC=golang-dev
https://golang.org/cl/8602047
2013-04-20 09:04:20 +09:00
Dave Cheney
77a0b96f2f
net: add test for runtime.PollDesc leak
...
See 8318044
R=bradfitz
CC=golang-dev
https://golang.org/cl/8547043
2013-04-09 11:14:22 +10:00
Albert Strasheim
cdc642453b
net: deflake TestDialTimeout
...
Fixes #3867 .
Fixes #3307 .
R=bradfitz, dvyukov
CC=golang-dev
https://golang.org/cl/7735044
2013-03-14 09:42:29 -07:00
Mikio Hara
ee9d148ce1
net: add test for Dial and Listen arguments
...
R=dave, bradfitz
CC=golang-dev
https://golang.org/cl/7305081
2013-02-14 07:02:32 +09:00
Dave Cheney
6a9e956f19
all: use t.Skip{,f}
...
Replace various t.Log{,f} ; return checks with t.Skip{,f}.
R=golang-dev, n13m3y3r, bradfitz, adg, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/7193044
2013-01-24 17:32:10 +11:00
Mikio Hara
feb509c794
net: make TestDialTimeoutFDLeak a bit robust
...
TestDialTimeoutFDLeak will fail when system state somaxconn is
greater than expected fixed value.
Fixes #4384 (again).
R=fullung, dave, rsc
CC=golang-dev
https://golang.org/cl/6873069
2012-12-13 16:21:25 +09:00
Dave Cheney
4766a35e7c
net: TestDialTimeoutFDLeak failure
...
Fixes #4384 .
Implments the suggestion by rsc in comment 15, http://code.google.com/p/go/issues/detail?id=4384#c15
An alternate suggestion would be to temporarily set GOMAXPROCS to 1 during this test.
R=fullung, rsc
CC=golang-dev
https://golang.org/cl/6923046
2012-12-12 07:25:07 +11:00
Brad Fitzpatrick
ef6806fb13
net: close fds eagerly in DialTimeout
...
Integrates with the pollserver now.
Uses the old implementation on windows and plan9.
Fixes #2631
R=paul, iant, adg, bendaglish, rsc
CC=golang-dev
https://golang.org/cl/6815049
2012-11-08 10:35:16 -06:00
Robert Griesemer
465b9c35e5
gofmt: apply gofmt -w src misc
...
Remove trailing whitespace in comments.
No other changes.
R=r
CC=golang-dev
https://golang.org/cl/6815053
2012-10-30 13:38:01 -07:00
Fazlul Shahriar
42a76efc92
net: pass tests on Plan 9 again
...
R=golang-dev
CC=golang-dev
https://golang.org/cl/6280045
2012-06-06 18:38:56 -04:00
Joel Sing
40b310706b
net: reduce dial tests on netbsd
...
Add NetBSD to the list of operating systems that have a reduced set
of dial tests.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6208083
2012-05-21 00:38:14 +10:00
Mikio Hara
ae7a843471
net: use IANA reserved port to test dial timeout
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5757060
2012-03-07 16:28:40 +09:00
Russ Cox
c804efb5de
net: fix TestDialTimeout on windows builder
...
I don't know what's out there, but something
is answering to 127.0.71.111:80 on our builder,
so use a different port.
Also insert a check that the dial fails, which
would have diagnosed this problem.
Fixes #3016 .
R=golang-dev, mikioh.mikioh, r
CC=golang-dev
https://golang.org/cl/5754062
2012-03-07 00:41:24 -05:00
Russ Cox
7c7966a426
net: disable use of external listen along with other external network uses
...
By default the all.bash tests must not ever announce
on an external address. It's not just an OS X issue.
R=golang-dev, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5753067
2012-03-06 23:35:31 -05:00
Mikio Hara
ecdd9f2376
net: minor fixes to test
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5707058
2012-02-29 12:34:05 +09:00
Mikio Hara
705ebf1144
net: reorganize test files
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5694063
2012-02-24 11:58:30 +09:00
Russ Cox
5e4e3d8e44
net: avoid Shutdown during Close
...
Once we've evicted all the blocked I/O, the ref count
should go to zero quickly, so it should be safe to
postpone the close(2) until then.
Fixes #1898 .
Fixes #2116 .
Fixes #2122 .
R=golang-dev, mikioh.mikioh, bradfitz, fullung, iant
CC=golang-dev
https://golang.org/cl/5649076
2012-02-14 00:40:37 -05:00
Russ Cox
0603b9e446
net: disable TestDialTimeout on Windows
...
Filed issue 3016 to fix this, but I really want
to see a "ok" in the Windows column so we
know what is and is not working.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5658050
2012-02-13 23:30:40 -05:00
Alex Brainman
07a2989d17
runtime, syscall, os/signal: fix windows build
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5656048
2012-02-14 13:51:38 +11:00
Russ Cox
cbe7d8db24
net: avoid TCP self-connect
...
Fixes #2690 .
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5650071
2012-02-12 23:25:55 -05:00
Mikio Hara
76a1cb5a00
net: fix comment, make use of listenerBacklog
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5653056
2012-02-11 11:51:12 +09:00
Alex Brainman
1f133e2b8e
net: run TestDialTimeout on windows
...
R=golang-dev, rsc
CC=bradfitz, golang-dev, mikioh.mikioh
https://golang.org/cl/5616066
2012-02-07 12:05:59 +11:00
Brad Fitzpatrick
964309e2fd
net: DialTimeout
...
Fixes #240
R=adg, dsymonds, rsc, r, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5491062
2011-12-20 13:17:39 -08:00