]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: spoe: Be sure to wakeup the good entity waiting for a buffer
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 11 Jan 2017 13:05:19 +0000 (14:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 9 Mar 2017 14:32:55 +0000 (15:32 +0100)
commit4596fb7056ae59e918537af046aed287f169226c
tree468c6503179e50ef1961ca8733ae1120385cc324
parenta21b064f819d69c988b5d3c2a289b81f2776d9fb
MEDIUM: spoe: Be sure to wakeup the good entity waiting for a buffer

This happens when buffer allocation failed. In the SPOE context, buffers are
allocated by streams and SPOE applets at different time. First, by streams, when
messages need to be encoded before sending them in a NOTIFY frame. Then, by SPOE
applets, when a ACK frame is received.

The first case works as expected, we wake up the stream. But for the second one,
we must wake up the waiting SPOE applet.
src/flt_spoe.c