mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-05-02 07:48:05 +00:00
MINOR: server: Make 'default-server' support 'tcp-ut' keyword.
This patch makes 'default-server' directive support 'tcp-ut' keyword.
This commit is contained in:
parent
bcaf1d7397
commit
5c3cd97550
@ -1833,7 +1833,7 @@ static struct bind_kw_list bind_kws = { "TCP", { }, {
|
||||
|
||||
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 },
|
||||
}};
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <netinet/tcp.h>
|
||||
|
||||
#include <import/xxhash.h>
|
||||
|
||||
@ -1435,6 +1436,10 @@ int parse_server(const char *file, int linenum, char **args, struct proxy *curpr
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user