]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] event_accept() must always wake the task up, even in health mode
authorWilly Tarreau <w@1wt.eu>
Sun, 8 Mar 2009 11:25:07 +0000 (12:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 8 Mar 2009 11:25:07 +0000 (12:25 +0100)
event_accept() did not wake the task up in health mode, so that mode was
not working anymore.

src/client.c

index 40ae50d0a85b307d6965cea84bc67ecc5f1f4ce0..9bff17bf30a3c0ec0a1202bcb698786568b4b1a7 100644 (file)
@@ -443,8 +443,7 @@ int event_accept(int fd) {
                 * pass through task_wakeup(), because this one knows how to apply
                 * priorities to tasks.
                 */
-               if (p->mode != PR_MODE_HEALTH)
-                       task_wakeup(t, TASK_WOKEN_INIT);
+               task_wakeup(t, TASK_WOKEN_INIT);
 
                p->feconn++;  /* beconn will be increased later */
                if (p->feconn > p->feconn_max)