mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-05 00:59:16 -04: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:
parent
6063003c96
commit
985234d0cb
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue