mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 00:02:18 -04:00
MINOR: listeners: make the accept loop more robust when maxaccept==0
If some listeners are mistakenly configured with 0 as the maxaccept value, then we now consider them as limited to one accept() at a time. This will avoid some issues as fixed by the past commit.
This commit is contained in:
parent
ca57de3e7b
commit
50de90a228
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ void listener_accept(int fd)
|
|||
{
|
||||
struct listener *l = fdtab[fd].owner;
|
||||
struct proxy *p = l->frontend;
|
||||
int max_accept = l->maxaccept;
|
||||
int max_accept = l->maxaccept ? l->maxaccept : 1;
|
||||
int cfd;
|
||||
int ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue