You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TCP_KEEPCNT (since Linux 2.4)
The maximum number of keepalive probes TCP should send before dropping the connection. This option should not be used in code intended to be portable.
TCP_KEEPIDLE (since Linux 2.4)
The time (in seconds) the connection needs to remain idle before TCP starts sending keepalive probes, if the socket option SO_KEEPALIVE has been set on this socket. This option should not be used in code intended to be portable.
TCP_KEEPINTVL (since Linux 2.4)
The time (in seconds) between individual keepalive probes. This option should not be used in code intended to be portable.
Warning: it may be a breaking change for users who expected milliseconds.
If i am wrong don't hesitate to correct me. :)
The text was updated successfully, but these errors were encountered:
If None is specified then keepalive messages are disabled, otherwise the number of milliseconds specified will be the time to remain idle before sending a TCP keepalive probe.
Some platforms specify this value in seconds, so sub-second millisecond specifications may be omitted.
Edit hit enter too soon.
Either documenting or change is fine for me, if you go for the doc I can do a PR today/tomorrow.
Hello, found maybe a little mistake in how
tcp_keepalive
see OptsBuilder::tcp_keepalive() is defined in the lib. Thanks for the lib by the way.By convention keepalive tcp parameters are seconds, in
mysql_async
it's currently definedfrom_millis()
.https://github.com/blackbeam/mysql_async/blob/master/src/conn/mod.rs#L913
From socket2 lib source-code it's expected in seconds (not explicitly said in doc but readable in code).
And From
man 7 tcp
man7.org tcp or linux.die.org man 7 tcpWarning: it may be a breaking change for users who expected milliseconds.
If i am wrong don't hesitate to correct me. :)
The text was updated successfully, but these errors were encountered: