1
0
mirror of https://github.com/golang/go synced 2024-10-05 18:31:28 -06:00
go/src/pkg/net
Ian Lance Taylor 4aa521a77d net: use DialTimeout in TestSelfConnect
This avoids problems with systems that take a long time to
find out nothing is listening, while still testing for the
self-connect misfeature since a self-connect should be fast.
With this we may be able to remove the test for non-Linux
systems.

Tested (on GNU/Linux) by editing selfConnect in
tcpsock_posix.go to always return false and verifying that
TestSelfConnect then fails with and without this change.

Idea from Uros Bizjak.

R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/39200044
2013-12-27 08:49:47 -08:00
..
http net/http: quiet distracting test spam 2013-12-26 13:03:30 -08:00
mail net/mail: fix minor doc typo. 2013-10-21 17:32:45 +11:00
rpc net/rpc: log I/O and internal errors only if debugLog is set. 2013-09-16 16:29:04 +10:00
smtp net/smtp: clarify that SendMail's auth param is optional 2013-08-27 16:12:11 -07:00
testdata net: test dnsconfig_unix with sample resolv.conf 2013-12-18 08:26:36 -08:00
textproto net/textproto: fix CanonicalMIMEHeaderKey panic 2013-11-04 12:35:11 -05:00
url net/url: fix Encode doc comment 2013-10-25 23:00:22 +03:00
cgo_bsd.go net: dragonfly support 2013-08-24 02:18:22 +10:00
cgo_linux.go
cgo_netbsd.go
cgo_openbsd.go
cgo_stub.go
cgo_unix_test.go net: add test cases for the both of netgo, cgo DNS lookups 2013-12-19 07:40:10 +09:00
cgo_unix.go net: ensure that ResolveTCPAddr(addr.String()) reproduces addr 2013-09-23 22:40:24 -04:00
conn_test.go
dial_gen_test.go
dial_gen.go net: implement TCP connection setup with fast failover 2013-09-11 10:48:53 -04:00
dial_test.go net: use DialTimeout in TestSelfConnect 2013-12-27 08:49:47 -08:00
dial.go net: don't return a nested error when happy eyeballs dialing 2013-12-19 10:00:15 +09:00
dialgoogle_test.go net: make TestDNSThreadLimit execute at the end of tests 2013-12-18 13:05:47 +09:00
dnsclient_unix_test.go net: dragonfly support 2013-08-24 02:18:22 +10:00
dnsclient_unix.go net: test dnsconfig_unix with sample resolv.conf 2013-12-18 08:26:36 -08:00
dnsclient.go
dnsconfig_unix_test.go net: rename TestReadConfig to TestDNSReadConfig 2013-12-19 13:02:06 +09:00
dnsconfig_unix.go net: test dnsconfig_unix with sample resolv.conf 2013-12-18 08:26:36 -08:00
dnsmsg_test.go
dnsmsg.go
dnsname_test.go
empty.c
example_test.go
fd_mutex_test.go
fd_mutex.go
fd_plan9.go net: re-enable raw socket tests on windows 2013-09-24 13:15:49 +10:00
fd_poll_runtime.go net: dragonfly support 2013-08-24 02:18:22 +10:00
fd_unix_test.go net: dragonfly support 2013-08-24 02:18:22 +10:00
fd_unix.go net: re-enable raw socket tests on windows 2013-09-24 13:15:49 +10:00
fd_windows.go net: re-enable raw socket tests on windows 2013-09-24 13:15:49 +10:00
file_plan9.go
file_test.go
file_unix.go net: dragonfly support 2013-08-24 02:18:22 +10:00
file_windows.go
hosts_test.go net: don't leave hostsPath unrestored on error in TestLookupStaticHost 2013-12-12 10:12:06 +04:00
hosts.go
interface_bsd_test.go net: dragonfly support 2013-08-24 02:18:22 +10:00
interface_bsd.go net: dragonfly support 2013-08-24 02:18:22 +10:00
interface_darwin.go
interface_dragonfly.go net: dragonfly support 2013-08-24 02:18:22 +10:00
interface_freebsd.go
interface_linux_test.go
interface_linux.go
interface_netbsd.go
interface_openbsd.go
interface_stub.go
interface_test.go syscall: update routing socket parser for NetBSD 6 and beyond 2013-08-25 08:44:31 +09:00
interface_unix_test.go net: dragonfly support 2013-08-24 02:18:22 +10:00
interface_windows.go
interface.go
ip_test.go net: ParseIP should return nil if :: doesn't expand in an IPv6 address. 2013-12-20 21:29:28 +09:00
ip.go net: ParseIP should return nil if :: doesn't expand in an IPv6 address. 2013-12-20 21:29:28 +09:00
ipraw_test.go net: re-enable raw socket tests on windows 2013-09-24 13:15:49 +10:00
iprawsock_plan9.go
iprawsock_posix.go net: add netaddr interface 2013-08-30 09:09:45 +09:00
iprawsock.go net: add netaddr interface 2013-08-30 09:09:45 +09:00
ipsock_plan9.go
ipsock_posix.go net: make protocol-specific Dial and Listen return consistent error value 2013-08-28 19:51:02 +09:00
ipsock_test.go net: ensure that ResolveTCPAddr(addr.String()) reproduces addr 2013-09-23 22:40:24 -04:00
ipsock.go net: ensure that ResolveTCPAddr(addr.String()) reproduces addr 2013-09-23 22:40:24 -04:00
lookup_plan9.go net: rewrite toLower more clearly 2013-12-17 16:32:27 -08:00
lookup_test.go
lookup_unix.go net: dragonfly support 2013-08-24 02:18:22 +10:00
lookup_windows.go net: fix misspelled variable name (fixes windows build) 2013-08-22 12:34:05 +10:00
lookup.go net: keep lookup IP stuff close 2013-08-31 16:29:50 +09:00
mac_test.go
mac.go
mockicmp_test.go net: move mock ICMP into separate file 2013-09-12 11:59:18 +09:00
mockserver_test.go net: implement TCP connection setup with fast failover 2013-09-11 10:48:53 -04:00
multicast_test.go net: re-enable raw socket tests on windows 2013-09-24 13:15:49 +10:00
net_test.go net: fix nits found by go tool vet 2013-12-10 14:30:52 +09:00
net.go undo CL 13348045 / 43675523c526 2013-09-11 20:29:22 -04:00
netgo_unix_test.go net: add test cases for the both of netgo, cgo DNS lookups 2013-12-19 07:40:10 +09:00
packetconn_test.go net: fix typo in failure message in test 2013-10-09 06:44:11 -07:00
parse_test.go
parse.go net, text/tabwriter: use cap arg to make 2013-12-12 10:13:17 +04:00
pipe_test.go
pipe.go
port_test.go
port_unix.go net: dragonfly support 2013-08-24 02:18:22 +10:00
port.go
protoconn_test.go net: re-enable raw socket tests on windows 2013-09-24 13:15:49 +10:00
race0.go net: annotate Read/Write for race detector 2013-08-19 23:09:24 +04:00
race.go net: annotate Read/Write for race detector 2013-08-19 23:09:24 +04:00
sendfile_dragonfly.go net: dragonfly support 2013-08-24 02:18:22 +10:00
sendfile_freebsd.go
sendfile_linux.go
sendfile_stub.go
sendfile_windows.go net: have separate read and write processing threads on windows 2013-08-27 14:53:57 +10:00
server_test.go
singleflight.go
sock_bsd.go net: dragonfly support 2013-08-24 02:18:22 +10:00
sock_cloexec.go
sock_linux.go
sock_plan9.go
sock_posix.go net: add netaddr interface 2013-08-30 09:09:45 +09:00
sock_windows.go
sockopt_bsd.go net: dragonfly support 2013-08-24 02:18:22 +10:00
sockopt_linux.go
sockopt_posix.go net: dragonfly support 2013-08-24 02:18:22 +10:00
sockopt_windows.go
sockoptip_bsd.go net: dragonfly support 2013-08-24 02:18:22 +10:00
sockoptip_linux.go
sockoptip_posix.go net: dragonfly support 2013-08-24 02:18:22 +10:00
sockoptip_windows.go
sys_cloexec.go net: dragonfly support 2013-08-24 02:18:22 +10:00
tcp_test.go net: ensure that ResolveTCPAddr(addr.String()) reproduces addr 2013-09-23 22:40:24 -04:00
tcpsock_plan9.go net: Fix inaccurate docs for AcceptTCP and AcceptUnix. 2013-09-06 12:00:03 -07:00
tcpsock_posix.go net: Fix inaccurate docs for AcceptTCP and AcceptUnix. 2013-09-06 12:00:03 -07:00
tcpsock.go net: ensure that ResolveTCPAddr(addr.String()) reproduces addr 2013-09-23 22:40:24 -04:00
tcpsockopt_darwin.go
tcpsockopt_openbsd.go
tcpsockopt_posix.go net: dragonfly support 2013-08-24 02:18:22 +10:00
tcpsockopt_unix.go net: dragonfly support 2013-08-24 02:18:22 +10:00
tcpsockopt_windows.go
timeout_test.go all: fix some mistakes found by go tool vet . 2013-09-27 10:09:15 +10:00
udp_test.go net: ensure that ResolveTCPAddr(addr.String()) reproduces addr 2013-09-23 22:40:24 -04:00
udpsock_plan9.go net: make protocol-specific WriteTo, WriteMsg methods return error instead of crash 2013-08-18 19:19:36 +09:00
udpsock_posix.go net: add netaddr interface 2013-08-30 09:09:45 +09:00
udpsock.go net: ensure that ResolveTCPAddr(addr.String()) reproduces addr 2013-09-23 22:40:24 -04:00
unicast_posix_test.go net: fix garbage connection close in dual stack tests 2013-08-17 13:40:55 +09:00
unix_test.go net: fix Close of autobind unix listener 2013-09-23 22:33:42 -04:00
unixsock_plan9.go net: Fix inaccurate docs for AcceptTCP and AcceptUnix. 2013-09-06 12:00:03 -07:00
unixsock_posix.go net: fix Close of autobind unix listener 2013-09-23 22:33:42 -04:00
unixsock.go net: add netaddr interface 2013-08-30 09:09:45 +09:00
z_last_test.go net: make TestDNSThreadLimit execute at the end of tests 2013-12-18 13:05:47 +09:00