BUG/MEDIUM: h1: Wait for the connection if the handshake didn't complete.

In h1_init(), also add the H1C_F_CS_WAIT_CONN flag if the handshake didn't
complete, otherwise we may end up letting the upper layer sending data too
soon.
This commit is contained in:
Olivier Houchard
2019-06-13 17:54:33 +02:00
committed by Olivier Houchard
parent 6063003c96
commit 985234d0cb

View File

@@ -423,7 +423,7 @@ static int h1_init(struct connection *conn, struct proxy *proxy, struct session
t->expire = tick_add(now_ms, h1c->timeout);
}
if (!(conn->flags & CO_FL_CONNECTED))
if (!(conn->flags & CO_FL_CONNECTED) || (conn->flags & CO_FL_HANDSHAKE))
h1c->flags |= H1C_F_CS_WAIT_CONN;
/* Always Create a new H1S */