]> Cypherpunks repositories - gostls13.git/commit
net: correct docs of KeepAlive field in Dialer type
authorBigMikes <giulio.micheloni@gmail.com>
Sun, 30 Dec 2018 14:18:58 +0000 (15:18 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 29 Apr 2019 16:49:52 +0000 (16:49 +0000)
commitcbf90b0028265a6195257e31a03aae42d402dd64
tree4935eb45a3bade4a674c9867e4ed6b2b1ee7c458
parent76659e47971b594aa6855ef77e022420e070e5ea
net: correct docs of KeepAlive field in Dialer type

KeepAlive field used to report the wording "keep-alive period"
which may be misleading. This field does not represent the whole
TCP keepalive time, that is the inactivity period upon which one
endpoint starts probing the other end. But it acctually specifies
the keepalive interval, that is the time between two keepalive
probes.

Fixes #29089

Change-Id: If99b38ba108830d0e5fe527171a2f5c96a3bcde7
Reviewed-on: https://go-review.googlesource.com/c/go/+/155960
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/dial.go
src/net/http/httputil/persist.go
src/net/tcpsock.go