]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: listener: Make sure w ereturn the tasklet from accept_queue_process
authorOlivier Houchard <cognet@ci0.org>
Fri, 25 Apr 2025 11:00:34 +0000 (13:00 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 25 Apr 2025 14:14:26 +0000 (16:14 +0200)
In accept_queue_process, return the tasklet to tell the scheduler the
tasklet is still alive, it is not yet needed, but will be soon.

src/listener.c

index c161c885b5614c6f5960706c880708b2812a4bf6..4ed3db7ba67df69e1e6fa832c197edcecf4bc57b 100644 (file)
@@ -181,7 +181,7 @@ struct task *accept_queue_process(struct task *t, void *context, unsigned int st
        if (!max_accept)
                tasklet_wakeup(ring->tasklet);
 
-       return NULL;
+       return t;
 }
 
 /* Initializes the accept-queues. Returns 0 on success, otherwise ERR_* flags */