mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-01 22:48:25 +00:00
[BUG] reserve some pipes for backends with splice enabled
If splicing is enabled in a backend, we need to guess how many pipes will be needed. We used to rely on fullconn, but this leads to non-working splicing when fullconn is not specified. So we now fallback to global.maxconn.
This commit is contained in:
parent
5bd8c376ad
commit
afb4876778
@ -560,7 +560,7 @@ void init(int argc, char **argv)
|
||||
if (cur->cap & PR_CAP_FE)
|
||||
nbfe += cur->maxconn;
|
||||
if (cur->cap & PR_CAP_BE)
|
||||
nbbe += cur->fullconn;
|
||||
nbbe += cur->fullconn ? cur->fullconn : global.maxconn;
|
||||
}
|
||||
}
|
||||
global.maxpipes = MAX(nbfe, nbbe);
|
||||
|
Loading…
Reference in New Issue
Block a user