]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: stream-int: convert some co_data() checks to channel_is_empty()
authorWilly Tarreau <w@1wt.eu>
Mon, 12 Nov 2018 17:48:52 +0000 (18:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Nov 2018 18:00:22 +0000 (19:00 +0100)
commit691fe3928435665a9128ba83c4b625243c31e79a
treeca25f9fa1014eadd896a75165547a92833081ce3
parentf26c26cca2f80e9ee4b235180bf7e7d6c28ffce9
BUG/MEDIUM: stream-int: convert some co_data() checks to channel_is_empty()

Splicing was in great part broken over the last few development version
due to the use of co_data() to detect if data are available in the channel.
But co_data() only looks at buffered data, not spliced data.

Channel_is_empty() takes care of both and should be used. With this,
splicing restarts to work but there are still a few cases where transfers
may stall.

No backport is needed.
src/stream_interface.c