1
0
mirror of https://github.com/golang/go synced 2024-11-19 22:04:44 -07:00
go/src/net
Paul Marks c50a8416c8 net: dialChannel should not treat an expired deadline as noDeadline.
Now, only a zero deadline is interpreted as noDeadline.  Any other time
in the past yields an immediate timeout.

TestConnectDeadlineInThePast already covers this case.  We just need to
un-skip it for plan9, where dialChannel is used.

Change-Id: I995fd1a632c31f8004dac772c3d7c43a2a5853b0
Reviewed-on: https://go-review.googlesource.com/8435
Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
2015-04-06 01:03:31 +00:00
..
http net/http: enable segfaulting test on darwin/arm 2015-03-23 14:27:17 +00:00
internal/socktest net/internal/socktest: new package 2015-03-25 00:13:46 +00:00
mail all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
rpc net/rpc: fix mutex comment 2014-10-13 10:27:51 -07:00
smtp net/smtp: document SendMail more 2015-02-07 22:23:10 +00:00
testdata
textproto net/textproto: turn an ancient DoS BUG annotation into a comment 2014-12-16 04:17:30 +00:00
url net/url: fix docs for URL.String 2015-03-24 23:56:43 +00:00
cgo_android.go
cgo_bsd.go net: remove solaris tag from cgo 2015-01-29 10:07:21 +00:00
cgo_linux.go
cgo_netbsd.go
cgo_openbsd.go
cgo_stub.go net: LookupHost and Resolve{TCP,UDP,IP}Addr should use zone from getaddrinfo 2015-03-08 09:58:11 +00:00
cgo_unix_test.go
cgo_unix.go net: LookupHost and Resolve{TCP,UDP,IP}Addr should use zone from getaddrinfo 2015-03-08 09:58:11 +00:00
conn_test.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
dial_gen.go net: dialChannel should not treat an expired deadline as noDeadline. 2015-04-06 01:03:31 +00:00
dial_test.go net: deflake TestDialTimeoutFDLeak 2015-04-03 00:48:47 +00:00
dial.go net: don't allocate dialer closure if we won't use it 2015-02-09 08:30:40 +00:00
dialgoogle_test.go net: deflake TestDialGoogle, TestResolveDialGoogle 2015-04-03 01:50:30 +00:00
dnsclient_test.go
dnsclient_unix_test.go net: fix data race in benchmarks 2015-04-01 22:02:41 +00:00
dnsclient_unix.go net: LookupHost and Resolve{TCP,UDP,IP}Addr should use zone from getaddrinfo 2015-03-08 09:58:11 +00:00
dnsclient.go net: case insensitivity of DNS labels in built-in stub resolver 2015-02-03 10:29:50 +00:00
dnsconfig_unix_test.go
dnsconfig_unix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
dnsmsg_test.go net: case insensitivity of DNS labels in built-in stub resolver 2015-02-03 10:29:50 +00:00
dnsmsg.go
dnsname_test.go net: fix data race in benchmarks 2015-04-01 22:02:41 +00:00
example_test.go
fd_mutex_test.go
fd_mutex.go
fd_plan9.go net: remove full stack test cases for IPConn 2015-01-29 10:21:44 +00:00
fd_poll_nacl.go net: remove the dregs of old built-in poll server 2015-02-04 10:16:38 +00:00
fd_poll_runtime.go net: remove the dregs of old built-in poll server 2015-02-04 10:16:38 +00:00
fd_posix_test.go net: don't return io.EOF on reading data from datagram, raw sockets on windows 2015-01-01 05:21:32 +00:00
fd_posix.go net: don't return io.EOF on reading data from datagram, raw sockets on windows 2015-01-01 05:21:32 +00:00
fd_unix.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
fd_windows.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
file_plan9.go
file_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
file_test.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
file_unix.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
file_windows.go
hook_cloexec.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
hook_plan9.go net: deflake TestDialTimeout 2015-04-02 01:04:49 +00:00
hook_unix.go net: deflake TestDialTimeout 2015-04-02 01:04:49 +00:00
hook_windows.go net: deflake TestDialTimeout 2015-04-02 01:04:49 +00:00
hosts_test.go all: don't refer to code.google.com/p/go{,-wiki}/ 2015-02-06 14:41:47 +00:00
hosts.go
interface_bsd_test.go
interface_bsd.go net, syscall: more accurate parsers for routing messages on BSD variants 2015-02-20 04:33:28 +00:00
interface_darwin.go net, syscall: more accurate parsers for routing messages on BSD variants 2015-02-20 04:33:28 +00:00
interface_dragonfly.go
interface_freebsd.go net, syscall: more accurate parsers for routing messages on BSD variants 2015-02-20 04:33:28 +00:00
interface_linux_test.go
interface_linux.go
interface_netbsd.go
interface_openbsd.go
interface_stub.go
interface_test.go net: fix data race in benchmarks 2015-04-01 22:02:41 +00:00
interface_unix_test.go
interface_windows.go net: re-implement Interfaces and InterfaceAddrs for IPNet, IPv6 on Windows 2015-02-10 00:44:05 +00:00
interface.go
ip_test.go net: fix data race in benchmarks 2015-04-01 22:02:41 +00:00
ip.go all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
ipraw_test.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
iprawsock_plan9.go
iprawsock_posix.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
iprawsock.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
ipsock_plan9.go
ipsock_posix.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
ipsock_test.go net: gofmt 2015-03-08 22:03:21 +00:00
ipsock.go net: move init function into net.go 2015-04-03 00:23:23 +00:00
lookup_plan9.go net: LookupHost and Resolve{TCP,UDP,IP}Addr should use zone from getaddrinfo 2015-03-08 09:58:11 +00:00
lookup_stub.go net: LookupHost and Resolve{TCP,UDP,IP}Addr should use zone from getaddrinfo 2015-03-08 09:58:11 +00:00
lookup_test.go net: move test flags into main_test.go 2015-04-02 09:07:24 +00:00
lookup_unix.go net: LookupHost and Resolve{TCP,UDP,IP}Addr should use zone from getaddrinfo 2015-03-08 09:58:11 +00:00
lookup_windows_test.go
lookup_windows.go net: LookupHost and Resolve{TCP,UDP,IP}Addr should use zone from getaddrinfo 2015-03-08 09:58:11 +00:00
lookup.go net: LookupHost and Resolve{TCP,UDP,IP}Addr should use zone from getaddrinfo 2015-03-08 09:58:11 +00:00
mac_test.go
mac.go
main_cloexec_test.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
main_plan9_test.go net: deflake TestDialGoogle, TestResolveDialGoogle 2015-04-03 01:50:30 +00:00
main_posix_test.go net: deflake TestDialGoogle, TestResolveDialGoogle 2015-04-03 01:50:30 +00:00
main_test.go net: deflake TestDialGoogle, TestResolveDialGoogle 2015-04-03 01:50:30 +00:00
main_unix_test.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
main_windows_test.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
mockserver_test.go
multicast_test.go
net_test.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
net_windows_test.go
net.go net: move init function into net.go 2015-04-03 00:23:23 +00:00
netgo_unix_test.go
packetconn_test.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
parse_test.go
parse.go net: simplify itoa conversions 2015-01-22 13:01:28 +00:00
pipe_test.go
pipe.go
platform_test.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
port_test.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
port_unix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
port.go
protoconn_test.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
race0.go
race.go
sendfile_dragonfly.go
sendfile_freebsd.go
sendfile_linux.go
sendfile_stub.go
sendfile_windows.go
server_test.go net: move test flags into main_test.go 2015-04-02 09:07:24 +00:00
singleflight.go net: if a DNS lookup times out, forget that it is in flight 2014-10-27 08:46:18 -07:00
sock_bsd.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sock_cloexec.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
sock_linux.go
sock_plan9.go
sock_posix.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
sock_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sock_windows.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
sockopt_bsd.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockopt_linux.go
sockopt_plan9.go
sockopt_posix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockopt_solaris.go
sockopt_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockopt_windows.go
sockoptip_bsd.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockoptip_linux.go
sockoptip_posix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockoptip_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sockoptip_windows.go
sys_cloexec.go net: add socket system call hooks for testing 2015-03-31 23:07:42 +00:00
tcp_test.go net: fix data race in benchmarks 2015-04-01 22:02:41 +00:00
tcpsock_plan9.go net: document that user shouldn't modify returned Addr 2015-02-06 19:21:40 +00:00
tcpsock_posix.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
tcpsock.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
tcpsockopt_darwin.go net: fix inconsistent behavior across platforms in SetKeepAlivePeriod 2014-09-11 17:56:58 +09:00
tcpsockopt_dragonfly.go net: fix inconsistent behavior across platforms in SetKeepAlivePeriod 2014-09-11 17:56:58 +09:00
tcpsockopt_openbsd.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
tcpsockopt_plan9.go
tcpsockopt_posix.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
tcpsockopt_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
tcpsockopt_unix.go net: fix inconsistent behavior across platforms in SetKeepAlivePeriod 2014-09-11 17:56:58 +09:00
tcpsockopt_windows.go net: fix inconsistent behavior across platforms in SetKeepAlivePeriod 2014-09-11 17:56:58 +09:00
timeout_test.go net: dialChannel should not treat an expired deadline as noDeadline. 2015-04-06 01:03:31 +00:00
udp_test.go net: disable WriteMsgUDP tests on nacl, windows (fix build) 2015-02-10 23:21:40 +00:00
udpsock_plan9.go net: update documentation for WriteMsgUDP 2015-02-10 22:27:17 +00:00
udpsock_posix.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
udpsock.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
unicast_posix_test.go net: disable TestDualStackUDPListener in short mode 2014-10-06 13:09:14 -04:00
unix_test.go net: simplify test helpers 2015-03-28 08:21:10 +00:00
unixsock_plan9.go net: document that user shouldn't modify returned Addr 2015-02-06 19:21:40 +00:00
unixsock_posix.go net: document that user shouldn't modify returned Addr 2015-02-06 19:21:40 +00:00
unixsock.go