projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fab7c7e
)
BUG/MEDIUM: stream_interface: Call the wake callback after sending.
author
Olivier Houchard
<ohouchard@haproxy.com>
Tue, 21 Aug 2018 14:37:06 +0000
(16:37 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Tue, 21 Aug 2018 16:06:57 +0000
(18:06 +0200)
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.
src/stream_interface.c
patch
|
blob
|
history
diff --git
a/src/stream_interface.c
b/src/stream_interface.c
index
52aa7c4
..
51f2300
100644
(file)
--- 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);
}