]> Cypherpunks repositories - gostls13.git/commit
net: fix inconsistent behavior across platforms in SetKeepAlivePeriod
authorMikio Hara <mikioh.mikioh@gmail.com>
Thu, 11 Sep 2014 08:56:58 +0000 (17:56 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Thu, 11 Sep 2014 08:56:58 +0000 (17:56 +0900)
commitf956740163ad4b46237cea83357b962cada1c2df
treece985da3a52d9d788bf0d61e2b4dcffd9260c455
parent689dc60c14cd63cb258c050542bcfc0cbc05e914
net: fix inconsistent behavior across platforms in SetKeepAlivePeriod

The previous implementation used per-socket TCP keepalive options
wrong. For example, it used another level socket option to control
TCP and it didn't use TCP_KEEPINTVL option when possible.

Fixes #8683.
Fixes #8701.
Update #8679

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/136480043
src/net/tcpsockopt_darwin.go
src/net/tcpsockopt_dragonfly.go
src/net/tcpsockopt_solaris.go [deleted file]
src/net/tcpsockopt_stub.go [moved from src/net/tcpsockopt_openbsd.go with 66% similarity]
src/net/tcpsockopt_unix.go
src/net/tcpsockopt_windows.go