1
0
mirror of https://github.com/golang/go synced 2024-11-26 10:28:19 -07:00
go/src/net
Mateusz Poliwczak 81efd7b347 net: support no-reload option for unix go resolver
It adds support for no-reload option, as specified in resolv.conf(5):
 no-reload (since glibc 2.26)
                     Sets RES_NORELOAD in _res.options.  This option
                     disables automatic reloading of a changed
                     configuration file.

Change-Id: I11182c5829434503f719ed162014f2301e3ba8d4
GitHub-Last-Rev: 7ae44be2d5
GitHub-Pull-Request: golang/go#56489
Reviewed-on: https://go-review.googlesource.com/c/go/+/446555
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
2022-11-01 22:44:57 +00:00
..
http net/http: deflake TestCancelRequestWhenSharingConnection 2022-10-31 20:44:00 +00:00
internal/socktest
mail all: use strings.Builder instead of bytes.Buffer 2022-09-03 18:23:33 +00:00
netip net/netip: add IPv6LinkLocalAllRouters and IPv6Loopback 2022-10-21 20:14:41 +00:00
rpc net/rpc/jsonrpc: use strings.Builder 2022-09-07 01:09:53 +00:00
smtp all: use fmt.Appendf 2022-10-04 22:43:12 +00:00
testdata net: allow single dot in resolv.conf search statement 2022-08-19 03:01:14 +00:00
textproto net/textproto: use bytes.Clone 2022-09-28 03:55:14 +00:00
url net/url: consistently remove ../ elements in JoinPath 2022-08-23 22:01:05 +00:00
addrselect_test.go net: precompute rfc6724policyTable in addrselect 2022-09-05 07:16:00 +00:00
addrselect.go net: precompute rfc6724policyTable in addrselect 2022-09-05 07:16:00 +00:00
cgo_aix.go
cgo_android.go
cgo_bsd.go
cgo_linux.go
cgo_netbsd.go
cgo_openbsd.go
cgo_resnew.go net: use libc (not cgo) for DNS on macOS 2022-11-01 14:05:39 +00:00
cgo_resold.go
cgo_socknew.go
cgo_sockold.go net: use libc (not cgo) for DNS on macOS 2022-11-01 14:05:39 +00:00
cgo_solaris.go
cgo_stub.go
cgo_unix_cgo.go net: drop unused _C_ai_addrlen function 2022-11-01 22:15:41 +00:00
cgo_unix_syscall.go net: drop unused _C_ai_addrlen function 2022-11-01 22:15:41 +00:00
cgo_unix_test.go
cgo_unix.go net: use libc (not cgo) for DNS on macOS 2022-11-01 14:05:39 +00:00
cgo_windows.go
conf_netcgo.go
conf_test.go
conf.go
conn_test.go
dial_test.go all: use time.Since instead of time.Now().Sub 2022-10-02 02:28:27 +00:00
dial_unix_test.go
dial.go
dnsclient_test.go
dnsclient_unix_test.go net: support no-reload option for unix go resolver 2022-11-01 22:44:57 +00:00
dnsclient_unix.go net: support no-reload option for unix go resolver 2022-11-01 22:44:57 +00:00
dnsclient.go
dnsconfig_unix_test.go net: allow single dot in resolv.conf search statement 2022-08-19 03:01:14 +00:00
dnsconfig_unix.go net: support no-reload option for unix go resolver 2022-11-01 22:44:57 +00:00
dnsconfig_windows.go
dnsconfig.go net: support no-reload option for unix go resolver 2022-11-01 22:44:57 +00:00
dnsname_test.go
error_plan9_test.go
error_plan9.go
error_posix_test.go
error_posix.go
error_test.go
error_unix_test.go
error_unix.go
error_windows_test.go
error_windows.go
example_test.go
external_test.go
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
fd_unix.go
fd_windows.go
file_plan9.go
file_stub.go
file_test.go
file_unix.go
file_windows.go
file.go
hook_plan9.go
hook_unix.go
hook_windows.go
hook.go
hosts_test.go
hosts.go
interface_aix.go net: add FlagRunning to exactly reflect the states of an interface. 2022-08-27 05:42:03 +00:00
interface_bsd_test.go
interface_bsd.go net: add FlagRunning to exactly reflect the states of an interface. 2022-08-27 05:42:03 +00:00
interface_bsdvar.go
interface_darwin.go
interface_freebsd.go
interface_linux_test.go
interface_linux.go net: add FlagRunning to exactly reflect the states of an interface. 2022-08-27 05:42:03 +00:00
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
interface_test.go
interface_unix_test.go
interface_windows.go net: add FlagRunning to exactly reflect the states of an interface. 2022-08-27 05:42:03 +00:00
interface.go net: add FlagRunning to exactly reflect the states of an interface. 2022-08-27 05:42:03 +00:00
ip_test.go
ip.go
iprawsock_plan9.go
iprawsock_posix.go
iprawsock_test.go
iprawsock.go
ipsock_plan9_test.go
ipsock_plan9.go
ipsock_posix.go
ipsock_test.go
ipsock.go
listen_test.go
lookup_fake.go
lookup_plan9.go
lookup_test.go net: use strings.Builder 2022-09-07 00:49:41 +00:00
lookup_unix.go
lookup_windows_test.go net: use strings.Builder 2022-09-07 00:49:41 +00:00
lookup_windows.go
lookup.go net: Resolver.LookupIP return error for empty string 2022-08-26 22:52:50 +00:00
mac_test.go
mac.go
main_cloexec_test.go
main_conf_test.go
main_noconf_test.go
main_plan9_test.go
main_posix_test.go
main_test.go
main_unix_test.go
main_windows_test.go
mockserver_test.go
net_fake.go
net_test.go net: mark withTCPConnPair as test helper 2022-09-06 16:59:58 +00:00
net_windows_test.go
net.go
netgo_unix_test.go
netgo.go
nss_test.go
nss.go
packetconn_test.go
parse_test.go
parse.go
pipe_test.go
pipe.go
platform_test.go
port_test.go
port_unix.go
port.go
protoconn_test.go
rawconn_stub_test.go
rawconn_test.go
rawconn_unix_test.go
rawconn_windows_test.go
rawconn.go
resolverdialfunc_test.go net: delete unused code 2022-09-29 20:43:19 +00:00
sendfile_linux_test.go net: fix a typo in BenchmarkSendFile 2022-09-07 01:09:59 +00:00
sendfile_linux.go
sendfile_stub.go
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
sock_bsd.go
sock_cloexec.go
sock_linux_test.go internal/syscall/unix: consolidate kernelVersion implementations 2022-09-03 18:39:45 +00:00
sock_linux.go internal/syscall/unix: consolidate kernelVersion implementations 2022-09-03 18:39:45 +00:00
sock_plan9.go
sock_posix.go
sock_stub.go
sock_windows.go
sockaddr_posix.go
sockopt_aix.go
sockopt_bsd.go
sockopt_linux.go
sockopt_plan9.go
sockopt_posix.go
sockopt_solaris.go
sockopt_stub.go
sockopt_windows.go
sockoptip_bsdvar.go
sockoptip_linux.go
sockoptip_posix.go
sockoptip_stub.go
sockoptip_windows.go
splice_linux.go
splice_stub.go
splice_test.go
sys_cloexec.go
tcpsock_plan9.go
tcpsock_posix.go
tcpsock_test.go
tcpsock_unix_test.go
tcpsock.go
tcpsockopt_darwin.go
tcpsockopt_dragonfly.go
tcpsockopt_openbsd.go
tcpsockopt_plan9.go
tcpsockopt_posix.go
tcpsockopt_solaris.go
tcpsockopt_stub.go
tcpsockopt_unix.go
tcpsockopt_windows.go
timeout_test.go net: delete unused code 2022-09-29 20:43:19 +00:00
udpsock_plan9_test.go
udpsock_plan9.go
udpsock_posix.go
udpsock_test.go net: use testenv.SkipIfOptimizationOff in TestAllocs 2022-08-15 18:44:19 +00:00
udpsock.go
unixsock_linux_test.go
unixsock_plan9.go
unixsock_posix.go
unixsock_readmsg_cloexec.go
unixsock_readmsg_cmsg_cloexec.go
unixsock_readmsg_other.go
unixsock_readmsg_test.go
unixsock_test.go
unixsock_windows_test.go
unixsock.go
write_unix_test.go
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