net: the KeepAlive comment in Dialer is not accurate #73386
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
The comment says that
KeepAlive specifies the interval
:go/src/net/dial.go
Lines 171 to 181 in 396a48b
In fact, it is used as
the idle time
:go/src/net/tcpsock.go
Line 289 in 396a48b
The KeepAlive field is passed as the second argument, which means idle instead of the interval. It is equal to the Idle field in the KeepAliveConfig:
The text was updated successfully, but these errors were encountered: