mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-21 20:53:21 +02:00
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:
committed by
Olivier Houchard
parent
6063003c96
commit
985234d0cb
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user