go/src/net
Bryan C. Mills 729c05d065 net/http: eliminate more arbitrary timeouts in tests
Change-Id: I5b3158ecd0eb20dc433a53a2b03eb4551cbb3f7d
Reviewed-on: https://go-review.googlesource.com/c/go/+/477196
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
2023-03-17 17:21:50 +00:00
..
http net/http: eliminate more arbitrary timeouts in tests 2023-03-17 17:21:50 +00:00
internal/socktest internal/poll, net, syscall: use accept4 on solaris 2022-05-03 14:38:32 +00:00
mail all: add missing periods in comments 2022-11-18 17:59:44 +00:00
netip net/netip: fix invalid representation of Prefix 2023-02-02 15:37:19 +00:00
rpc net/rpc/jsonrpc: use strings.Builder 2022-09-07 01:09:53 +00:00
smtp all: add missing periods in comments 2022-11-18 17:59:44 +00:00
testdata net: add support for /etc/hosts aliases using go resolver 2022-11-10 18:29:14 +00:00
textproto mime/multipart: limit memory/inode consumption of ReadForm 2023-02-14 16:51:18 +00:00
url net/url: simplify values Get 2023-02-24 12:38:08 +00:00
addrselect.go all: fix function names in comments 2022-11-04 22:36:12 +00:00
addrselect_test.go net: precompute rfc6724policyTable in addrselect 2022-09-05 07:16:00 +00:00
cgo_aix.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
cgo_android.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
cgo_bsd.go net: adjust build tags for darwin libc calls 2022-11-07 21:05:53 +00:00
cgo_darwin.go net: adjust build tags for darwin libc calls 2022-11-07 21:05:53 +00:00
cgo_linux.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
cgo_netbsd.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
cgo_openbsd.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
cgo_resnew.go net: use libc (not cgo) for DNS on macOS 2022-11-01 14:05:39 +00:00
cgo_resold.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
cgo_socknew.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
cgo_sockold.go net: use libc (not cgo) for DNS on macOS 2022-11-01 14:05:39 +00:00
cgo_solaris.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
cgo_stub.go net: adjust build tags for darwin libc calls 2022-11-07 21:05:53 +00:00
cgo_unix.go net: move context cancellation logic of blocking calls to a common function 2023-02-10 19:39:56 +00:00
cgo_unix_cgo.go net: remove unused cname return from cgoLookupIPCNAME 2023-02-09 20:52:30 +00:00
cgo_unix_cgo_res.go net: fix res_search uses on alpine, android, dragonfly 2022-11-08 20:59:42 +00:00
cgo_unix_cgo_resn.go net: fix res_search uses on alpine, android, dragonfly 2022-11-08 20:59:42 +00:00
cgo_unix_syscall.go net: remove unused cname return from cgoLookupIPCNAME 2023-02-09 20:52:30 +00:00
cgo_unix_test.go net: adjust build tags for darwin libc calls 2022-11-07 21:05:53 +00:00
cgo_windows.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
conf.go net: use a consistent dnsConfig in hostLookupOrder 2022-11-15 00:37:41 +00:00
conf_netcgo.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
conf_test.go net: return errNoSuchHost when no entry found in /etc/hosts and order is hostLookupFiles 2022-11-17 21:42:39 +00:00
conn_test.go net: lengthen arbitrary SetDeadline timeout by a few orders of magnitude 2021-12-17 02:00:14 +00:00
dial.go net: fix typo in ControlContext parameter names 2022-11-18 19:13:54 +00:00
dial_test.go net: add ControlContext to Dialer 2022-11-04 02:00:13 +00:00
dial_unix_test.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
dnsclient.go net: use fastrand64 in randInt 2022-04-21 17:46:26 +00:00
dnsclient_test.go
dnsclient_unix.go net: return errNoSuchHost when no entry found in /etc/hosts and order is hostLookupFiles 2022-11-17 21:42:39 +00:00
dnsclient_unix_test.go net: skip test affected by local network config on non-builder 2023-02-27 11:55:26 +00:00
dnsconfig.go net: support no-reload option for unix go resolver 2022-11-01 22:44:57 +00:00
dnsconfig_unix.go net: use net/netip for address parsing 2023-01-31 22:29:57 +00:00
dnsconfig_unix_test.go net: do not modify shared test variable in TestDNSReadConfig 2022-11-03 17:41:32 +00:00
dnsconfig_windows.go net: permit use of Resolver.PreferGo, netgo on Windows and Plan 9 2022-05-30 21:23:29 +00:00
dnsname_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
error_plan9.go
error_plan9_test.go net: refactor TestWriteToTimeout 2021-12-13 16:44:13 +00:00
error_posix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
error_posix_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
error_test.go net: support error.Is of network errors and context errors 2022-04-03 15:43:15 +00:00
error_unix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
error_unix_test.go net: refactor TestWriteToTimeout 2021-12-13 16:44:13 +00:00
error_windows.go
error_windows_test.go net: refactor TestWriteToTimeout 2021-12-13 16:44:13 +00:00
example_test.go net: add examples for remaining IP functions 2021-10-13 16:36:59 +00:00
external_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
fcntl_libc_test.go internal/poll, internal/syscall/unix, net, runtime: convert openbsd (except mips64) to direct libc calls 2022-08-31 16:59:38 +00:00
fcntl_syscall_test.go internal/poll, internal/syscall/unix, net, runtime: convert openbsd (except mips64) to direct libc calls 2022-08-31 16:59:38 +00:00
fd_plan9.go
fd_posix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
fd_unix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
fd_windows.go
file.go
file_plan9.go net: unify TCP keepalive behavior 2022-11-10 18:46:00 +00:00
file_stub.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
file_test.go net: pass a testing.TB to newLocal* helpers 2021-12-13 16:42:23 +00:00
file_unix.go net: unify TCP keepalive behavior 2022-11-10 18:46:00 +00:00
file_windows.go
hook.go
hook_plan9.go
hook_unix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
hook_windows.go
hosts.go net: use net/netip for address parsing 2023-01-31 22:29:57 +00:00
hosts_test.go net: add support for /etc/hosts aliases using go resolver 2022-11-10 18:29:14 +00:00
interface.go net: add FlagRunning to exactly reflect the states of an interface. 2022-08-27 05:42:03 +00:00
interface_aix.go net: add FlagRunning to exactly reflect the states of an interface. 2022-08-27 05:42:03 +00:00
interface_bsd.go net: add FlagRunning to exactly reflect the states of an interface. 2022-08-27 05:42:03 +00:00
interface_bsd_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
interface_bsdvar.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
interface_darwin.go
interface_freebsd.go net: don't use syscall.NET_RT_IFLISTL on FreeBSD 2021-10-02 16:05:55 +00:00
interface_linux.go net: add FlagRunning to exactly reflect the states of an interface. 2022-08-27 05:42:03 +00:00
interface_linux_test.go
interface_plan9.go net: add FlagRunning to exactly reflect the states of an interface. 2022-08-27 05:42:03 +00:00
interface_solaris.go net: add FlagRunning to exactly reflect the states of an interface. 2022-08-27 05:42:03 +00:00
interface_stub.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
interface_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
interface_unix_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
interface_windows.go net: add FlagRunning to exactly reflect the states of an interface. 2022-08-27 05:42:03 +00:00
ip.go net: use net/netip for address parsing 2023-01-31 22:29:57 +00:00
ip_test.go net: use net/netip for address parsing 2023-01-31 22:29:57 +00:00
iprawsock.go
iprawsock_plan9.go
iprawsock_posix.go net: add ControlContext to Dialer 2022-11-04 02:00:13 +00:00
iprawsock_test.go net: skip tests if creating a socket is disallowed 2023-03-15 17:06:26 +00:00
ipsock.go net: never probe IPv4 map support on DragonFly BSD, OpenBSD 2021-04-12 21:26:59 +00:00
ipsock_plan9.go net: fix (*ipStackCapabilities).probe godoc 2021-04-12 05:11:59 +00:00
ipsock_plan9_test.go
ipsock_posix.go net: add ControlContext to Dialer 2022-11-04 02:00:13 +00:00
ipsock_test.go
listen_test.go net: avoid racing on port reuse in TestListenConfigControl 2022-05-09 18:10:01 +00:00
lookup.go net: use net/netip for address parsing 2023-01-31 22:29:57 +00:00
lookup_fake.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
lookup_plan9.go net: use a consistent dnsConfig in hostLookupOrder 2022-11-15 00:37:41 +00:00
lookup_test.go net: inline ios check in tests 2023-02-24 20:25:59 +00:00
lookup_unix.go net: use a consistent dnsConfig in hostLookupOrder 2022-11-15 00:37:41 +00:00
lookup_windows.go net: retry if GetAddrInfoW returns WSTRY_AGAIN when resolving an IP 2023-02-15 22:27:16 +00:00
lookup_windows_test.go net: use strings.Builder 2022-09-07 00:49:41 +00:00
mac.go all: gofmt main repo 2022-04-11 16:34:30 +00:00
mac_test.go
main_cloexec_test.go internal/poll, net, syscall: use accept4 on solaris 2022-05-03 14:38:32 +00:00
main_conf_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
main_noconf_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
main_plan9_test.go
main_posix_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
main_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
main_unix_test.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
main_windows_test.go
mockserver_test.go net: avoid racing on port reuse in TestListenConfigControl 2022-05-09 18:10:01 +00:00
net.go net: document that on macOS c-archive requires -lresolv 2023-02-24 20:00:34 +00:00
net_fake.go all: enable disabled HTTP/2 tests 2022-11-22 18:52:58 +00:00
net_test.go net: mark withTCPConnPair as test helper 2022-09-06 16:59:58 +00:00
net_windows_test.go net: skip tests that use netsh on the windows-arm64-10 builder 2022-03-31 21:21:20 +00:00
netgo.go net: adjust build tags for darwin libc calls 2022-11-07 21:05:53 +00:00
netgo_unix_test.go net: adjust build tags for darwin libc calls 2022-11-07 21:05:53 +00:00
nss.go net: rewrite nsswitch.conf parsing to work like other parsers 2022-11-15 20:15:51 +00:00
nss_test.go net: rewrite nsswitch.conf parsing to work like other parsers 2022-11-15 20:15:51 +00:00
packetconn_test.go net: create unix sockets in unique directories 2021-12-13 16:42:31 +00:00
parse.go net: rewrite nsswitch.conf parsing to work like other parsers 2022-11-15 20:15:51 +00:00
parse_test.go net/netip: add new IP address package 2021-11-02 01:28:01 +00:00
pipe.go
pipe_test.go
platform_test.go net: inline ios check in tests 2023-02-24 20:25:59 +00:00
port.go
port_test.go
port_unix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
protoconn_test.go net: correct TestIPConnSpecificMethods comment after CL 476217 2023-03-15 19:02:47 +00:00
rawconn.go os: support zero-copy from TCP/Unix socket to file 2023-02-27 00:12:08 +00:00
rawconn_stub_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
rawconn_test.go net: pass a testing.TB to newLocal* helpers 2021-12-13 16:42:23 +00:00
rawconn_unix_test.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
rawconn_windows_test.go
resolverdialfunc_test.go net: delete unused code 2022-09-29 20:43:19 +00:00
sendfile_linux.go net,os: set the theoretical unlimited remaining bytes to max int64 2023-02-28 04:49:22 +00:00
sendfile_linux_test.go net: fix a typo in BenchmarkSendFile 2022-09-07 01:09:59 +00:00
sendfile_stub.go net: do not use sendfile on iOS 2021-12-01 15:58:46 +00:00
sendfile_test.go all: use io.Seek* instead of deprecated os.SEEK_* 2022-08-08 17:01:54 +00:00
sendfile_unix_alt.go net: add the missing OS Darwin in the comment of sendFile 2022-08-29 20:04:53 +00:00
sendfile_windows.go
server_test.go net: create unix sockets in unique directories 2021-12-13 16:42:31 +00:00
sock_bsd.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
sock_cloexec.go net: remove fallback path in sysSocket 2022-05-03 18:23:13 +00:00
sock_linux.go internal/syscall/unix: consolidate kernelVersion implementations 2022-09-03 18:39:45 +00:00
sock_linux_test.go internal/syscall/unix: consolidate kernelVersion implementations 2022-09-03 18:39:45 +00:00
sock_plan9.go
sock_posix.go net: add ControlContext to Dialer 2022-11-04 02:00:13 +00:00
sock_stub.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
sock_windows.go
sockaddr_posix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
sockopt_aix.go
sockopt_bsd.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
sockopt_linux.go
sockopt_plan9.go
sockopt_posix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
sockopt_solaris.go
sockopt_stub.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
sockopt_windows.go
sockoptip_bsdvar.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
sockoptip_linux.go
sockoptip_posix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
sockoptip_stub.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
sockoptip_windows.go
splice_linux.go net,os: set the theoretical unlimited remaining bytes to max int64 2023-02-28 04:49:22 +00:00
splice_stub.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
splice_test.go net: use /dev/null for TestSplice of big file to fix the test flakes on linux-riscv64-jsing 2023-02-28 19:35:52 +00:00
sys_cloexec.go internal/poll, net, syscall: use accept4 on solaris 2022-05-03 14:38:32 +00:00
tcpsock.go net: document the Close blocking with SO_LINGER on some OS's 2023-03-07 22:08:04 +00:00
tcpsock_plan9.go net: unify TCP keepalive behavior 2022-11-10 18:46:00 +00:00
tcpsock_posix.go net: unify TCP keepalive behavior 2022-11-10 18:46:00 +00:00
tcpsock_test.go net: delete TestTCPSelfConnect 2023-01-19 20:46:05 +00:00
tcpsock_unix_test.go net: pass a testing.TB to newLocal* helpers 2021-12-13 16:42:23 +00:00
tcpsockopt_darwin.go
tcpsockopt_dragonfly.go
tcpsockopt_openbsd.go
tcpsockopt_plan9.go all: add internal/itoa package 2021-03-14 17:56:50 +00:00
tcpsockopt_posix.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
tcpsockopt_solaris.go
tcpsockopt_stub.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
tcpsockopt_unix.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
tcpsockopt_windows.go
timeout_test.go net: remove max timeout from TestDialTimeout 2023-03-15 16:19:26 +00:00
udpsock.go net: document UDPConn.ReadFromUDPAddrPort's AddrPort result more 2022-07-27 15:04:58 +00:00
udpsock_plan9.go net: add ReadFromUDPAddrPort 2021-11-02 18:35:35 +00:00
udpsock_plan9_test.go
udpsock_posix.go net: add ControlContext to Dialer 2022-11-04 02:00:13 +00:00
udpsock_test.go net: use testenv.SkipIfOptimizationOff in TestAllocs 2022-08-15 18:44:19 +00:00
unixsock.go
unixsock_linux_test.go
unixsock_plan9.go
unixsock_posix.go net: add ControlContext to Dialer 2022-11-04 02:00:13 +00:00
unixsock_readmsg_cloexec.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
unixsock_readmsg_cmsg_cloexec.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
unixsock_readmsg_other.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
unixsock_readmsg_test.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
unixsock_test.go net: create unix sockets in unique directories 2021-12-13 16:42:31 +00:00
unixsock_windows_test.go net: create unix sockets in unique directories 2021-12-13 16:42:31 +00:00
write_unix_test.go all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
writev_test.go internal/poll, net, syscall: enable writev on aix 2022-10-07 16:48:35 +00:00
writev_unix.go internal/poll, net, syscall: enable writev on aix 2022-10-07 16:48:35 +00:00