]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[CLEANUP] remove a useless test in manage_global_listener_queue()
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Sep 2011 12:26:33 +0000 (14:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Sep 2011 16:09:27 +0000 (18:09 +0200)
The test for the empty list was done twice.

src/haproxy.c

index d72a2f1191e81e115396e3ec79b87ecbb7f7beac..7aa9fd451d3f931a903d39ccac3be56ab3b263dd 100644 (file)
@@ -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.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
         * disappeared.
         */
-       if (!LIST_ISEMPTY(&global_listener_queue))
-               dequeue_all_listeners(&global_listener_queue);
+       dequeue_all_listeners(&global_listener_queue);
 
  out:
        t->expire = next;