go/src/net
Roman Kollár 94b6eec5dc [release-branch.go1.13] net/http: fix Server.ConnContext modifying context for all new connections
Updates #35750
Fixes #35765

Change-Id: I65d38cfc5ddd66131777e104c269cc3559b2471d
GitHub-Last-Rev: 953fdfd49b
GitHub-Pull-Request: golang/go#35751
Reviewed-on: https://go-review.googlesource.com/c/go/+/208318
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
(cherry picked from commit bbbc6589df)
Reviewed-on: https://go-review.googlesource.com/c/go/+/208235
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2019-11-22 21:34:49 +00:00
..
http [release-branch.go1.13] net/http: fix Server.ConnContext modifying context for all new connections 2019-11-22 21:34:49 +00:00
internal/socktest net: add AIX operating system 2018-10-10 17:20:53 +00:00
mail all: change some function documentation to be more idiomatic 2019-07-28 18:09:57 +00:00
rpc all: clean up code with token.IsExported 2019-04-16 14:43:48 +00:00
smtp all: remove PEM-encoded private keys from tests 2019-05-21 20:03:55 +00:00
testdata net: use DNS over TCP when use-vc is set in resolv.conf 2019-04-18 18:51:13 +00:00
textproto [release-branch.go1.13-security] net/textproto: don't normalize headers with spaces before the colon 2019-09-25 17:15:11 +00:00
url net/url: make Hostname and Port predictable for invalid Host values 2019-08-12 23:12:29 +00:00
addrselect.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
addrselect_test.go
cgo_aix.go net: allow build on aix/ppc64 with cgo 2019-03-19 03:19:53 +00:00
cgo_android.go
cgo_bsd.go
cgo_linux.go
cgo_netbsd.go
cgo_openbsd.go
cgo_resnew.go
cgo_resold.go
cgo_socknew.go
cgo_sockold.go net: allow build on aix/ppc64 with cgo 2019-03-19 03:19:53 +00:00
cgo_solaris.go
cgo_stub.go net: remove non-cgo macOS resolver code 2019-06-06 19:56:56 +00:00
cgo_unix.go all: remove os.ErrTimeout 2019-08-02 17:57:18 +00:00
cgo_unix_test.go net: allow build on aix/ppc64 with cgo 2019-03-19 03:19:53 +00:00
cgo_windows.go
conf.go net: remove non-cgo macOS resolver code 2019-06-06 19:56:56 +00:00
conf_netcgo.go
conf_test.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
conn_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
dial.go net: use same TCP Keep Alive interval between dial and accept 2019-05-06 18:01:09 +00:00
dial_test.go net: skip DNS tests on self-hosted Android 2019-05-03 13:59:16 +00:00
dial_unix_test.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
dnsclient.go all: move internal/x to vendor/golang.org/x and revendor using 'go mod vendor' 2019-03-11 20:28:54 +00:00
dnsclient_test.go net: use golang.org/x/net/dns/dnsmessage for DNS resolution 2018-03-15 04:18:11 +00:00
dnsclient_unix.go [release-branch.go1.13] net: avoid an infinite loop in LookupAddr 2019-10-03 02:07:28 +00:00
dnsclient_unix_test.go [release-branch.go1.13] net: avoid an infinite loop in LookupAddr 2019-10-03 02:07:28 +00:00
dnsconfig_unix.go net: use DNS over TCP when use-vc is set in resolv.conf 2019-04-18 18:51:13 +00:00
dnsconfig_unix_test.go net: use DNS over TCP when use-vc is set in resolv.conf 2019-04-18 18:51:13 +00:00
dnsname_test.go net: don't reject domain names with only numbers and hyphens 2018-09-24 17:56:44 +00:00
error_nacl.go net, syscall: make ECONNRESET/ECONNABORTED only temporary for Accept 2018-05-01 14:50:33 +00:00
error_plan9.go net, syscall: make ECONNRESET/ECONNABORTED only temporary for Accept 2018-05-01 14:50:33 +00:00
error_plan9_test.go
error_posix.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
error_posix_test.go
error_test.go all: add new GOOS=illumos, split out of GOOS=solaris 2019-04-30 16:59:13 +00:00
error_unix.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
error_unix_test.go
error_windows.go net, syscall: make ECONNRESET/ECONNABORTED only temporary for Accept 2018-05-01 14:50:33 +00:00
error_windows_test.go
example_test.go net: improve ExampleUDPConn_WriteTo docs 2018-06-26 21:30:43 +00:00
external_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
fd_plan9.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
fd_unix.go all: add new GOOS=illumos, split out of GOOS=solaris 2019-04-30 16:59:13 +00:00
fd_windows.go net: improve ExampleUDPConn_WriteTo docs 2018-06-26 21:30:43 +00:00
file.go net: update docs for unimplemented methods and functions 2018-08-03 15:08:42 +00:00
file_plan9.go net: add KeepAlive field to ListenConfig 2019-04-04 14:51:33 +00:00
file_stub.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
file_test.go os, net: avoid races between dup, set-blocking-mode, and closing 2018-06-22 14:27:22 +00:00
file_unix.go net: add KeepAlive field to ListenConfig 2019-04-04 14:51:33 +00:00
file_windows.go
hook.go net: enable TCP keepalives by default 2018-12-03 16:36:46 +00:00
hook_plan9.go
hook_unix.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
hook_windows.go
hosts.go net: use internal/bytealg insetad of linkname tricks 2018-08-21 22:09:23 +00:00
hosts_test.go
interface.go net: update BUG sections for go1.12 2019-01-10 04:47:00 +00:00
interface_aix.go net: fix fd leak with interfaces on aix/ppc64 2019-03-05 15:11:20 +00:00
interface_bsd.go all: move internal/x to vendor/golang.org/x and revendor using 'go mod vendor' 2019-03-11 20:28:54 +00:00
interface_bsd_test.go net: update zoneCache on cache misses to cover appearing interfaces 2018-11-06 00:05:32 +00:00
interface_bsdvar.go all: move internal/x to vendor/golang.org/x and revendor using 'go mod vendor' 2019-03-11 20:28:54 +00:00
interface_darwin.go all: move internal/x to vendor/golang.org/x and revendor using 'go mod vendor' 2019-03-11 20:28:54 +00:00
interface_freebsd.go all: move internal/x to vendor/golang.org/x and revendor using 'go mod vendor' 2019-03-11 20:28:54 +00:00
interface_linux.go
interface_linux_test.go net: update zoneCache on cache misses to cover appearing interfaces 2018-11-06 00:05:32 +00:00
interface_plan9.go net: explain why we ignore the first line of Plan 9 interface-status files 2019-02-26 23:19:37 +00:00
interface_solaris.go all: move internal/x to vendor/golang.org/x and revendor using 'go mod vendor' 2019-03-11 20:28:54 +00:00
interface_stub.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
interface_test.go [release-branch.go1.13] syscall: reenable sysctl on iOS 2019-10-25 01:30:52 +00:00
interface_unix_test.go net: update zoneCache on cache misses to cover appearing interfaces 2018-11-06 00:05:32 +00:00
interface_windows.go doc: update the minimum support Windows version 2018-07-11 22:05:38 +00:00
ip.go net: fix the docs in IPNet.String 2019-08-06 15:09:26 +00:00
ip_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
iprawsock.go net: update docs for unimplemented methods and functions 2018-08-03 15:08:42 +00:00
iprawsock_plan9.go net: move dial and listen functions under sysDialer, sysListener 2018-05-29 23:57:04 +00:00
iprawsock_posix.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
iprawsock_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
ipsock.go net: make cgo resolver work more accurately with network parameter 2018-10-25 03:14:03 +00:00
ipsock_plan9.go net: use internal/bytealg insetad of linkname tricks 2018-08-21 22:09:23 +00:00
ipsock_posix.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
ipsock_test.go
listen_test.go all: add new GOOS=illumos, split out of GOOS=solaris 2019-04-30 16:59:13 +00:00
lookup.go net: add IsNotFound field to DNSError 2019-04-23 14:11:33 +00:00
lookup_fake.go net: make cgo resolver work more accurately with network parameter 2018-10-25 03:14:03 +00:00
lookup_plan9.go net: fix lookupHost to return DNSError on Plan 9 2019-04-25 14:25:10 +00:00
lookup_test.go net: don't crash on Windows when Lookup name has null byte in string 2019-04-23 22:02:01 +00:00
lookup_unix.go all: move internal/x to vendor/golang.org/x and revendor using 'go mod vendor' 2019-03-11 20:28:54 +00:00
lookup_windows.go net: check for canceled context before starting Windows DNS lookup 2019-05-14 15:20:18 +00:00
lookup_windows_test.go all: use strings.ReplaceAll and bytes.ReplaceAll where applicable 2018-09-26 22:14:25 +00:00
mac.go net: use EUI-48/EUI-64 reserved address blocks for documentation 2019-02-27 02:36:14 +00:00
mac_test.go net: use EUI-48/EUI-64 reserved address blocks for documentation 2019-02-27 02:36:14 +00:00
main_cloexec_test.go net, internal/poll, net/internal/socktest: use SOCK_{CLOEXEC,NONBLOCK} accept4/socket flags on OpenBSD 2018-02-26 16:59:38 +00:00
main_conf_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
main_noconf_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
main_plan9_test.go
main_posix_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
main_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
main_unix_test.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
main_windows_test.go
mockserver_test.go net: remove unixgram test sockets 2019-02-26 23:33:36 +00:00
net.go net: document that a keep-alive failure also returns a timeout 2019-08-11 15:44:08 +00:00
net_fake.go net: improve ExampleUDPConn_WriteTo docs 2018-06-26 21:30:43 +00:00
net_test.go net: set TestNotTemporaryRead flaky for AIX 2019-07-11 17:28:41 +00:00
net_windows_test.go all: use strings.ReplaceAll and bytes.ReplaceAll where applicable 2018-09-26 22:14:25 +00:00
netgo_unix_test.go net: make cgo resolver work more accurately with network parameter 2018-10-25 03:14:03 +00:00
nss.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
nss_test.go
packetconn_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
parse.go net: use internal/bytealg insetad of linkname tricks 2018-08-21 22:09:23 +00:00
parse_test.go
pipe.go all: remove os.ErrTimeout 2019-08-02 17:57:18 +00:00
pipe_test.go all: move internal/x to vendor/golang.org/x and revendor using 'go mod vendor' 2019-03-11 20:28:54 +00:00
platform_test.go net: retrieve if unix network is available only once for AIX 2019-04-12 15:23:31 +00:00
port.go
port_test.go
port_unix.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
protoconn_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
rawconn.go net: update docs for unimplemented methods and functions 2018-08-03 15:08:42 +00:00
rawconn_stub_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
rawconn_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
rawconn_unix_test.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
rawconn_windows_test.go net: add ListenConfig, Dialer.Control to permit socket opts before listen/dial 2018-05-30 22:54:22 +00:00
sendfile_linux.go net: return poll.SendFile error from sendFile 2019-03-01 22:15:57 +00:00
sendfile_stub.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
sendfile_test.go os: don't let sendFile put a pipe into blocking mode 2018-12-28 04:17:55 +00:00
sendfile_unix_alt.go net: return poll.SendFile error from sendFile 2019-03-01 22:15:57 +00:00
sendfile_windows.go
server_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
sock_bsd.go
sock_cloexec.go net, internal/poll, net/internal/socktest: use SOCK_{CLOEXEC,NONBLOCK} accept4/socket flags on OpenBSD 2018-02-26 16:59:38 +00:00
sock_linux.go
sock_plan9.go
sock_posix.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
sock_stub.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
sock_windows.go
sockaddr_posix.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
sockopt_aix.go net: drop confusing comment 2019-01-10 04:47:18 +00:00
sockopt_bsd.go
sockopt_linux.go
sockopt_plan9.go
sockopt_posix.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
sockopt_solaris.go
sockopt_stub.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
sockopt_windows.go
sockoptip_bsdvar.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
sockoptip_linux.go
sockoptip_posix.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
sockoptip_stub.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
sockoptip_windows.go
splice_linux.go net: don't use splice for unix{packet,gram} connections 2018-09-24 17:25:15 +00:00
splice_stub.go net: add support for splice(2) in (*TCPConn).ReadFrom on Linux 2018-04-24 14:14:56 +00:00
splice_test.go net: pass TMPDIR to test client process 2019-04-07 18:55:23 +00:00
sys_cloexec.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
tcpsock.go net: correct docs of KeepAlive field in Dialer type 2019-04-29 16:49:52 +00:00
tcpsock_plan9.go net: use same TCP Keep Alive interval between dial and accept 2019-05-06 18:01:09 +00:00
tcpsock_posix.go net: use same TCP Keep Alive interval between dial and accept 2019-05-06 18:01:09 +00:00
tcpsock_test.go all: add new GOOS=illumos, split out of GOOS=solaris 2019-04-30 16:59:13 +00:00
tcpsock_unix_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
tcpsockopt_darwin.go net: comment duplicate constant 2019-05-11 23:19:40 +00:00
tcpsockopt_dragonfly.go
tcpsockopt_openbsd.go
tcpsockopt_plan9.go
tcpsockopt_posix.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
tcpsockopt_solaris.go
tcpsockopt_stub.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
tcpsockopt_unix.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
tcpsockopt_windows.go
timeout_test.go all: remove os.ErrTimeout 2019-08-02 17:57:18 +00:00
udpsock.go net: update docs for unimplemented methods and functions 2018-08-03 15:08:42 +00:00
udpsock_plan9.go net: move dial and listen functions under sysDialer, sysListener 2018-05-29 23:57:04 +00:00
udpsock_plan9_test.go
udpsock_posix.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
udpsock_test.go net: skip TestUDPZeroBytePayload on Darwin 2019-01-03 05:07:58 +00:00
unixsock.go net: update BUG sections for go1.12 2019-01-10 04:47:00 +00:00
unixsock_linux_test.go
unixsock_plan9.go net: move dial and listen functions under sysDialer, sysListener 2018-05-29 23:57:04 +00:00
unixsock_posix.go net: add AIX operating system 2018-10-10 17:20:53 +00:00
unixsock_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
unixsock_windows_test.go net: skip TestUnixConnLocalWindows on windows/arm 2018-10-08 04:13:54 +00:00
write_unix_test.go
writev_test.go net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
writev_unix.go