MEDIUM: server: implement TCP_USER_TIMEOUT on the server
This is equivalent to commit 2af207a ("MEDIUM: tcp: implement tcp-ut
bind option to set TCP_USER_TIMEOUT") except that this time it works
on the server side. The purpose is to detect dead server connections
even when checks are rare, disabled, or after a soft reload (since
checks are disabled there as well), and to ensure client connections
will get killed faster.
diff --git a/include/types/server.h b/include/types/server.h
index abd1130..3e25c34 100644
--- a/include/types/server.h
+++ b/include/types/server.h
@@ -216,6 +216,7 @@
time_t last_change; /* last time, when the state was changed */
int puid; /* proxy-unique server ID, used for SNMP, and "first" LB algo */
+ int tcp_ut; /* for TCP, user timeout */
struct check check; /* health-check specific configuration */
struct check agent; /* agent specific configuration */