]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: stream-int: don't set SI_FL_WAIT_ROOM on CF_READ_DONTWAIT
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 22 Oct 2018 19:34:21 +0000 (21:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 23 Oct 2018 08:22:36 +0000 (10:22 +0200)
commit955188d37d53946c439817997a5431cbe5b943ed
treef19aa7f75e566602500c4418b49c56b549d64256
parent55d6be7d83c54ac389b5ba391c8504ad07cbb1d9
BUG/MEDIUM: stream-int: don't set SI_FL_WAIT_ROOM on CF_READ_DONTWAIT

With the previous connection model, when we purposely decided to stop
receiving in order to avoid polling after a complete request was received
for example, it was needed to set SI_FL_WAIT_ROOM to prevent receive
polling from being re-armed. Now with the new subscription-based model
there is no such thing anymore and there is noone to remove this flag
either. Thus if a request takes more than one packet to come in or
spans over too many packets, this flag will cause it to wait forever.
Let's simply remove this flag now.

This patch should not be backported since older versions still need
that this flag is set here to stop receiving.
src/stream_interface.c