mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
BUG/MINOR: lua: initialize the correct idle conn lists for the SSL sockets
Commit 40a007cf2 ("MEDIUM: threads/server: Make connection list (priv/idle/safe) thread-safe") made a copy-paste error when initializing the Lua sockets, as the TCP one was initialized twice. Fortunately it has no impact because the pointers are set to NULL after a memset(0) and are not changed in between. This must be backported to 1.9 and 1.8.
This commit is contained in:
parent
3ddcf7643c
commit
b784b35ce8
@ -8892,9 +8892,9 @@ void hlua_init(void)
|
||||
socket_ssl.obj_type = OBJ_TYPE_SERVER;
|
||||
LIST_INIT(&socket_ssl.actconns);
|
||||
socket_ssl.pendconns = EB_ROOT;
|
||||
socket_tcp.priv_conns = NULL;
|
||||
socket_tcp.idle_conns = NULL;
|
||||
socket_tcp.safe_conns = NULL;
|
||||
socket_ssl.priv_conns = NULL;
|
||||
socket_ssl.idle_conns = NULL;
|
||||
socket_ssl.safe_conns = NULL;
|
||||
socket_ssl.next_state = SRV_ST_RUNNING; /* early server setup */
|
||||
socket_ssl.last_change = 0;
|
||||
socket_ssl.id = "LUA-SSL-CONN";
|
||||
|
Loading…
x
Reference in New Issue
Block a user