mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-05 04:56:10 +02:00
BUG/MEDIUM: peers: fix applet scheduling
Consecutive to the recent changes brought to applets, peers properly connect but do not exchange data anymore because the stream interface is not marked as waiting for data. No backport is needed.
This commit is contained in:
parent
7f6192c0d3
commit
6e2979ca31
@ -1143,6 +1143,10 @@ static struct stream *peer_session_create(struct peer *peer, struct peer_session
|
||||
*/
|
||||
s->flags = SF_ASSIGNED|SF_ADDR_SET;
|
||||
|
||||
/* applet is waiting for data */
|
||||
si_applet_cant_get(&s->si[0]);
|
||||
appctx_wakeup(appctx);
|
||||
|
||||
/* initiate an outgoing connection */
|
||||
si_set_state(&s->si[1], SI_ST_ASS);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user