This patch makes 'default-server' directive support 'tcp-ut' keyword.
static struct srv_kw_list srv_kws = { "TCP", { }, {
#ifdef TCP_USER_TIMEOUT
- { "tcp-ut", srv_parse_tcp_ut, 1, 0 }, /* set TCP user timeout on server */
+ { "tcp-ut", srv_parse_tcp_ut, 1, 1 }, /* set TCP user timeout on server */
#endif
{ NULL, NULL, 0 },
}};
#include <ctype.h>
#include <errno.h>
+#include <netinet/tcp.h>
#include <import/xxhash.h>
newsrv->ssl_ctx.ciphers = strdup(curproxy->defsrv.ssl_ctx.ciphers);
#endif
+#ifdef TCP_USER_TIMEOUT
+ newsrv->tcp_ut = curproxy->defsrv.tcp_ut;
+#endif
+
cur_arg = 3;
} else {
newsrv = &curproxy->defsrv;