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:
Willy Tarreau 2015-04-27 13:21:15 +02:00
parent 7f6192c0d3
commit 6e2979ca31

View File

@ -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);