mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-24 15:21:29 +02:00
[CLEANUP] remove a useless test in manage_global_listener_queue()
The test for the empty list was done twice.
This commit is contained in:
parent
c2adf8b906
commit
abacc2cfd1
@ -599,6 +599,7 @@ void init(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
global.hardmaxconn = global.maxconn; /* keep this max value */
|
||||||
global.maxsock += global.maxconn * 2; /* each connection needs two sockets */
|
global.maxsock += global.maxconn * 2; /* each connection needs two sockets */
|
||||||
global.maxsock += global.maxpipes * 2; /* each pipe needs two FDs */
|
global.maxsock += global.maxpipes * 2; /* each pipe needs two FDs */
|
||||||
|
|
||||||
@ -1054,8 +1055,7 @@ static struct task *manage_global_listener_queue(struct task *t)
|
|||||||
* as a file descriptor or memory and that the temporary condition has
|
* as a file descriptor or memory and that the temporary condition has
|
||||||
* disappeared.
|
* disappeared.
|
||||||
*/
|
*/
|
||||||
if (!LIST_ISEMPTY(&global_listener_queue))
|
dequeue_all_listeners(&global_listener_queue);
|
||||||
dequeue_all_listeners(&global_listener_queue);
|
|
||||||
|
|
||||||
out:
|
out:
|
||||||
t->expire = next;
|
t->expire = next;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user