From 70d9b2fdb0cc490e2fd1f4d5a20f2de167df9671 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Thu, 29 Nov 2018 16:57:32 +0100 Subject: [PATCH] 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. --- src/backend.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend.c b/src/backend.c index 5aaa46d61..29a21dab6 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))))