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.
This commit is contained in:
Olivier Houchard 2018-11-29 16:57:32 +01:00 committed by Willy Tarreau
parent 6be139f867
commit 70d9b2fdb0

View 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))))