]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tcp: socket translate TCP_KEEPIDLE for macOs equivalent
authorDavid CARLIER <devnexen@gmail.com>
Sun, 1 May 2022 14:29:58 +0000 (15:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 8 May 2022 08:35:39 +0000 (10:35 +0200)
commit4aed40e6c74f4157fc215913e22648c670fe1ffb
tree4a2ade858ec3c26ea87760fb69aeb6d989526188
parent8f7133e242b5f4c07dd7f9fda26a9eb7adf7bfbc
MINOR: tcp: socket translate TCP_KEEPIDLE for macOs equivalent

On Linux the interval before starting to send TCP keep-alive packets
is defined by TCP_KEEPIDLE. MacOS has an equivalent with TCP_KEEPIDLE,
which also uses seconds as a unit, so it's possible to simply remap the
definition of TCP_KEEPIDLE to TCP_KEEPALIVE there and get it to seamlessly
work. The other settings (interval and count) are not present, though.
include/haproxy/compat.h