mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-10 06:32:51 +02:00
MINOR: server: add a list of safe, already reused idle connections
These ones are considered safe as they have already been reused. They will be useful in "aggressive" and "always" http-reuse modes in order to place the first request of a connection with the least risk.
This commit is contained in:
@@ -5062,6 +5062,7 @@ void hlua_init(void)
|
||||
LIST_INIT(&socket_tcp.pendconns);
|
||||
LIST_INIT(&socket_tcp.priv_conns);
|
||||
LIST_INIT(&socket_tcp.idle_conns);
|
||||
LIST_INIT(&socket_tcp.safe_conns);
|
||||
socket_tcp.state = SRV_ST_RUNNING; /* early server setup */
|
||||
socket_tcp.last_change = 0;
|
||||
socket_tcp.id = "LUA-TCP-CONN";
|
||||
@@ -5107,6 +5108,7 @@ void hlua_init(void)
|
||||
LIST_INIT(&socket_ssl.pendconns);
|
||||
LIST_INIT(&socket_ssl.priv_conns);
|
||||
LIST_INIT(&socket_ssl.idle_conns);
|
||||
LIST_INIT(&socket_ssl.safe_conns);
|
||||
socket_ssl.state = SRV_ST_RUNNING; /* early server setup */
|
||||
socket_ssl.last_change = 0;
|
||||
socket_ssl.id = "LUA-SSL-CONN";
|
||||
|
||||
Reference in New Issue
Block a user