From: Olivier Houchard Date: Thu, 29 Nov 2018 15:57:32 +0000 (+0100) Subject: BUG/MEDIUM: connections: Wake the stream once the mux is chosen. X-Git-Tag: v1.9-dev9~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70d9b2fdb0cc490e2fd1f4d5a20f2de167df9671;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: connections: Wake the stream once the mux is chosen. When we defer the mux choice until the ALPN is negociated, don't forget to wake the stream once it's done, or it will never have the opportunity to send data. --- diff --git a/src/backend.c b/src/backend.c index 5aaa46d61a..29a21dab61 100644 --- a/src/backend.c +++ b/src/backend.c @@ -1046,6 +1046,7 @@ static int conn_complete_server(struct connection *conn) struct conn_stream *cs = NULL; struct stream *s = conn->mux_ctx; + task_wakeup(s->task, TASK_WOKEN_IO); conn_clear_xprt_done_cb(conn); /* Verify if the connection just established. */ if (unlikely(!(conn->flags & (CO_FL_WAIT_L4_CONN | CO_FL_WAIT_L6_CONN | CO_FL_CONNECTED))))