]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: process_stream(): Don't wake the task if no new data was received.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 28 Sep 2018 12:38:51 +0000 (14:38 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 28 Sep 2018 13:12:12 +0000 (15:12 +0200)
commitd48d6d284ed6165dae2e3e97c2f72ed77a828622
tree95bd335078f0ecfac8b68a48576978669c16c7e5
parent61d322fa9e31e4b812048bcd32a4c630fbcca5f5
BUG/MEDIUM: process_stream(): Don't wake the task if no new data was received.

At the eand of process_stream(), we wake the task if there's something in
the input buffer, after attempting a recv. However this is wrong, and we should
only do so if we received new data. Just check the CF_READ_PARTIAL flag.

This is 1.9-specific and should not be backported.
src/stream.c