From: Willy Tarreau Date: Sun, 25 Jan 2009 09:42:05 +0000 (+0100) Subject: [BUG] reserve some pipes for backends with splice enabled X-Git-Tag: v1.3.16-rc1~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=afb4876778468106dc4766ab6101f1d25d60ab5a;p=thirdparty%2Fhaproxy.git [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. --- diff --git a/src/haproxy.c b/src/haproxy.c index 5911b0c6cd..9b83146e63 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -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);