]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream-int: call si_cs_process() in stream_int_update_conn
authorWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 12:32:08 +0000 (13:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 12:48:06 +0000 (13:48 +0100)
commiteafd8ebcfea4940f69f064c84fd4a4f270b212ce
treefba54e80a9ee554a432cb351862bb1c936f6a0ff
parent85f890174af1dee74051f4e7015b8e8807b3ddef
MEDIUM: stream-int: call si_cs_process() in stream_int_update_conn

Calling si_cs_send() alone is always dangerous because it can result
in the loss of an event if it manages to empty the buffer. Indeed, in
this case it's critical to call si_chk_rcv() on the opposite stream-int.
Given that si_cs_process() takes care of all this, let's call it instead.
All this code could possibly be refined soon to avoid redoing the whole
stream_int_notify() and do it only after a send(), but at the moment it's
not important.
src/stream_interface.c