redis icon indicating copy to clipboard operation
redis copied to clipboard

Sanitize invalid TCP_KEEPINTVL and simplify TCP_KEEPALIVE_ABORT_THRESHOLD on Solaris

Open panjf2000 opened this issue 2 months ago • 2 comments

Two things:

  1. Avoid invalid value being set to TCP_KEEPINTVL and raising an error
  2. Simplify setting TCP_KEEPALIVE_ABORT_THRESHOLD by eliminating the needless calculations

The time between each consequent probes is set by TCP_KEEPINTVL in seconds. The minimum value is ten seconds. The maximum is ten days, while the default is two hours.

From TCP on Solaris

panjf2000 avatar Mar 14 '24 09:03 panjf2000