From: Olivier Houchard Date: Tue, 21 Aug 2018 14:37:06 +0000 (+0200) Subject: BUG/MEDIUM: stream_interface: Call the wake callback after sending. X-Git-Tag: v1.9-dev2~135 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80c56790d984eadbe26115202c1e9a4bb4a0c7fa;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: stream_interface: Call the wake callback after sending. If we subscribed to send, and the callback is called, call the wake callback after, so that process_stream() may be woken up if needed. This is 1.9-specific, no backport is needed. --- diff --git a/src/stream_interface.c b/src/stream_interface.c index 52aa7c43d1..51f2300daf 100644 --- a/src/stream_interface.c +++ b/src/stream_interface.c @@ -764,8 +764,10 @@ struct task *si_cs_io_cb(struct task *t, void *ctx, unsigned short state) if (!cs) return NULL; - if (!(si->wait_list.wait_reason & SUB_CAN_SEND)) + if (!(si->wait_list.wait_reason & SUB_CAN_SEND)) { si_cs_send(cs); + si_cs_wake_cb(cs); + } return (NULL); }