1
0
mirror of https://github.com/golang/go synced 2024-10-04 15:21:22 -06:00
go/src/net
Aram Hăvărneanu db8d5b7608 net: try to fix setKeepAlivePeriod on Solaris
Unfortunately Oracle Solaris does not have TCP_KEEPIDLE and
TCP_KEEPINTVL. TCP_KEEPIDLE is equivalent to TCP_KEEPALIVE_THRESHOLD,
but TCP_KEEPINTVL does not have a direct equivalent, so we don't set
TCP_KEEPINTVL any more.

Old Darwin versions also lack TCP_KEEPINTVL, but the code tries to set
it anyway so that it works on newer versions. We can't do that because
Oracle might assign the number illumos uses for TCP_KEEPINTVL to a
constant with a different meaning.

Unfortunately there's nothing we can do if we want to support both
illumos and Oracle Solaris with the same GOOS.

Updates #9614.

Change-Id: Id39eb5147f7afa8e951f886c0bf529d00f0e1bd4
Reviewed-on: https://go-review.googlesource.com/7690
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
2015-05-06 12:03:20 +00:00
..
http net/http: don't send implicit Content-Length if Transfer-Encoding is set 2015-05-06 00:10:12 +00:00
internal/socktest net/internal/socktest: add hook for Listen, failed system call counters 2015-04-15 11:03:50 +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: document that the type must be exported, not just the methods 2015-04-08 18:34:35 +00:00
smtp net/smtp: document SendMail more 2015-02-07 22:23:10 +00:00
testdata net: use Go's DNS resolver when system configuration permits 2015-04-23 02:48:43 +00:00
textproto net/textproto: turn an ancient DoS BUG annotation into a comment 2014-12-16 04:17:30 +00:00
url net/url: allow Parse, ParseRequestURI to parse ipv6 zone identifiers in URIs 2015-04-07 14:24:23 +00:00
cgo_android.go net: clean up cgo 2015-04-17 23:19:19 +00:00
cgo_bsd.go net: clean up cgo 2015-04-17 23:19:19 +00:00
cgo_linux.go net: clean up cgo 2015-04-17 23:19:19 +00:00
cgo_netbsd.go net: clean up cgo 2015-04-17 23:19:19 +00:00
cgo_openbsd.go net: clean up cgo 2015-04-17 23:19:19 +00:00
cgo_solaris.go net: add cgo support for Solaris 2015-05-06 11:37:55 +00:00
cgo_stub.go net: clean up cgo 2015-04-17 23:19:19 +00:00
cgo_unix_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
cgo_unix.go net: add cgo support for Solaris 2015-05-06 11:37:55 +00:00
cgo_windows.go net: clean up cgo 2015-04-17 23:19:19 +00:00
conf_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
conf.go net: make go DNS use localhost if resolv.conf is missing or empty 2015-04-30 18:19:00 +00:00
conn_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
dial_gen.go net: add Source field to OpError 2015-04-29 22:37:30 +00:00
dial_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
dial.go net: add Source field to OpError 2015-04-29 22:37:30 +00:00
dnsclient_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
dnsclient_unix_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
dnsclient_unix.go net: make go DNS use localhost if resolv.conf is missing or empty 2015-04-30 18:19:00 +00:00
dnsclient.go net: fix inconsistent error values on Lookup 2015-04-21 05:16:07 +00:00
dnsconfig_unix_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
dnsconfig_unix.go net: make go DNS use localhost if resolv.conf is missing or empty 2015-04-30 18:19:00 +00:00
dnsmsg_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
dnsmsg.go net: allow a dns TXT record to contain more than one <character-string> 2015-04-29 21:48:48 +00:00
dnsname_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
error_plan9_test.go net: deflake timeout, deadline tests 2015-04-29 23:37:21 +00:00
error_posix_test.go net: deflake timeout, deadline tests 2015-04-29 23:37:21 +00:00
error_test.go net: make go DNS use localhost if resolv.conf is missing or empty 2015-04-30 18:19:00 +00:00
example_test.go
external_test.go net: rename dialgoogle_test.go to external_test.go 2015-04-29 02:24:27 +00:00
fd_mutex_test.go
fd_mutex.go
fd_plan9.go net: fix inconsistent errors 2015-05-05 09:40:07 +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: fix inconsistent errors 2015-05-05 09:40:07 +00:00
fd_windows.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
file_plan9.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
file_stub.go net: fix inconsistent error values on File 2015-04-21 03:37:41 +00:00
file_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
file_unix.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
file_windows.go net: fix inconsistent error values on File 2015-04-21 03:37:41 +00:00
file.go net: add Source field to OpError 2015-04-29 22:37:30 +00:00
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: add Listen system call hook for testing 2015-04-15 11:47:49 +00:00
hook_windows.go net: add Listen system call hook for testing 2015-04-15 11:47:49 +00:00
hook.go net: move testHookSetKeepAlive into hook.go 2015-04-07 03:02:10 +00:00
hosts_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
hosts.go
interface_bsd_test.go
interface_bsd.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
interface_darwin.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
interface_dragonfly.go
interface_freebsd.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
interface_linux_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
interface_linux.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
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 net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
interface_windows.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
interface.go net: add Source field to OpError 2015-04-29 22:37:30 +00:00
ip_test.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
ip.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
ipraw_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
iprawsock_plan9.go net: add Source field to OpError 2015-04-29 22:37:30 +00:00
iprawsock_posix.go net: add Source field to OpError 2015-04-29 22:37:30 +00:00
iprawsock.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +00:00
ipsock_plan9.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
ipsock_posix.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
ipsock_test.go net: fix a nit found by vet 2015-04-19 10:45:49 +00:00
ipsock.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
listen_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
lookup_plan9.go net: fix inconsistent errors 2015-05-05 09:40:07 +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: simplify error messages in tests 2015-05-06 09:25:08 +00:00
lookup_unix.go net: use Go's DNS resolver when system configuration permits 2015-04-23 02:48:43 +00:00
lookup_windows_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
lookup_windows.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
lookup.go net: fix inconsistent error values on Lookup 2015-04-21 05:16:07 +00:00
mac_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
mac.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
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: fix TestDialGoogle with -ipv6 when CGO_ENABLED=0 2015-04-16 00:44:52 +00:00
main_test.go net: deflake zero byte IO tests on datagram 2015-04-22 00:13:37 +00:00
main_unix_test.go net: add Listen system call hook for testing 2015-04-15 11:47:49 +00:00
main_windows_test.go net: add Listen system call hook for testing 2015-04-15 11:47:49 +00:00
mockserver_test.go net: deflake listener tests 2015-05-06 07:46:37 +00:00
net_test.go net: add missing Close tests 2015-04-29 23:01:45 +00:00
net_windows_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
net.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
netgo_unix_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
nss_test.go net: use Go's DNS resolver when system configuration permits 2015-04-23 02:48:43 +00:00
nss.go net: use Go's DNS resolver when system configuration permits 2015-04-23 02:48:43 +00:00
packetconn_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
parse_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
parse.go net: use Go's DNS resolver when system configuration permits 2015-04-23 02:48:43 +00:00
pipe_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
pipe.go net: add Source field to OpError 2015-04-29 22:37:30 +00:00
platform_test.go net: enable unixpacket tests on openbsd 2015-05-06 00:31:58 +00:00
port_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
port_unix.go net: fix inconsistent error values on Lookup 2015-04-21 05:16:07 +00:00
port.go net: fix inconsistent error values on Lookup 2015-04-21 05:16:07 +00:00
protoconn_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
race0.go
race.go
sendfile_dragonfly.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
sendfile_freebsd.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
sendfile_linux.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
sendfile_stub.go
sendfile_windows.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
server_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
sock_bsd.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
sock_cloexec.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
sock_linux.go
sock_plan9.go
sock_posix.go net: add Listen system call hook for testing 2015-04-15 11:47:49 +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: fix inconsistent errors 2015-05-05 09:40:07 +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: fix inconsistent errors 2015-05-05 09:40:07 +00:00
tcp_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
tcpsock_plan9.go net: add Source field to OpError 2015-04-29 22:37:30 +00:00
tcpsock_posix.go net: add Source field to OpError 2015-04-29 22:37:30 +00:00
tcpsock.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +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_solaris.go net: try to fix setKeepAlivePeriod on Solaris 2015-05-06 12:03:20 +00:00
tcpsockopt_stub.go net: separate NaCl dependent placeholders from BSD's 2014-09-18 19:17:55 +09:00
tcpsockopt_unix.go net: try to fix setKeepAlivePeriod on Solaris 2015-05-06 12:03:20 +00:00
tcpsockopt_windows.go net: fix inconsistent errors 2015-05-05 09:40:07 +00:00
timeout_test.go net: add missing ReadFrom, WriteTo deadline tests 2015-05-05 08:54:28 +00:00
udp_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
udpsock_plan9.go net: add Source field to OpError 2015-04-29 22:37:30 +00:00
udpsock_posix.go net: add Source field to OpError 2015-04-29 22:37:30 +00:00
udpsock.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +00:00
unix_test.go net: simplify error messages in tests 2015-05-06 09:25:08 +00:00
unixsock_plan9.go net: add Source field to OpError 2015-04-29 22:37:30 +00:00
unixsock_posix.go net: add Source field to OpError 2015-04-29 22:37:30 +00:00
unixsock.go net: make multi-IP resolution more flexible. 2015-04-10 09:03:25 +00:00