]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] session: clear BF_READ_ATTACHED before next I/O
authorWilly Tarreau <w@1wt.eu>
Fri, 4 Jun 2010 09:40:20 +0000 (11:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 4 Jun 2010 12:49:52 +0000 (14:49 +0200)
commita6eebb372d8ed27e2d0ac39a005e11930e8f4593
tree7edab5d2a0f6f6749d6da682630b0fdb8a945563
parente29e1c5df47ad7f6f052422e92e1a94bf444d2dc
[BUG] session: clear BF_READ_ATTACHED before next I/O

The BF_READ_ATTACHED flag was created to wake analysers once after
a connection was established. It turns out that this flag is never
cleared once set, so even if there is no event, some analysers are
still evaluated for no reason.

The bug was introduced with commit ea38854d34675d5472319c453b7027af42fe8aab.
It may cause slightly increased CPU usages during data transfers, maybe
even quite noticeable once when transferring transfer-encoded data,
due to the fact that the request analysers are being checked for every
chunk.

This fix must be backported in 1.4 after all non-reg tests have been
completed.
src/session.c