]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: connections: Wake the stream once the mux is chosen.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 29 Nov 2018 15:57:32 +0000 (16:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 29 Nov 2018 16:39:04 +0000 (17:39 +0100)
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

index 5aaa46d61ab8f8180965929e818d7eec3e5c643e..29a21dab613f0e124166f694dc3bbc6933ca2870 100644 (file)
@@ -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))))