]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream: don't abusively loop back on changes on CF_SHUT*_NOW
authorWilly Tarreau <w@1wt.eu>
Thu, 6 Jun 2019 12:45:26 +0000 (14:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 Jun 2019 14:36:19 +0000 (16:36 +0200)
commit1ec9bb5b62d915b66d2f2b4cffbd28ae16b22311
tree3323abf4822e6282fdad181f79a85bc91fab7758
parent3c5c066d66d213afffaead7e82f3233d9debf66d
MEDIUM: stream: don't abusively loop back on changes on CF_SHUT*_NOW

These flags are not used by analysers, only by the shut* functions, and
they were covered by CF_MASK_STATIC only because in the past the shut
functions were in the middle of the analysers. But here they are causing
excess loop backs which provide no value and increase processing cost.
Ideally the CF_MASK_STATIC bitfield should be revisited, but doing this
alone is enough to reduce by 30% the number of calls to si_sync_send().
src/stream.c