CLEANUP: config: Don't alter listener->maxaccept when nbproc is set to 1
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 30 Apr 2019 12:08:41 +0000 (14:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 30 Apr 2019 13:28:29 +0000 (15:28 +0200)
commit02f3cf19ed803d20aff9294ce7cb732489951ff5
tree06ac2db218d2b8f04ee97d0610f0857236b1f3e8
parent6b02ab87348090efec73b1dd24f414239669f279
CLEANUP: config: Don't alter listener->maxaccept when nbproc is set to 1

This patch only removes a useless calculation on listener->maxaccept when nbproc
is set to 1. Indeed, the following formula has no effet in such case:

  listener->maxaccept = (listener->maxaccept + nbproc - 1) / nbproc;

This patch may be backported as far as 1.5.
src/cfgparse.c