mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-02-04 08:51:26 +01:00
BUG/MEDIUM: connections: Remove CS_FL_EOS | CS_FL_REOS on retry.
CS_FL_EOS | CS_FL_REOS can be set by the mux if the connection failed, so make sure we remove them before retrying to connect, or it may lead to a premature close of the connection.
This commit is contained in:
parent
211d540a81
commit
ab8b075ff0
@ -1132,7 +1132,7 @@ int connect_server(struct stream *s)
|
||||
old_conn = srv_conn = cs_conn(srv_cs);
|
||||
if (old_conn) {
|
||||
old_conn->flags &= ~(CO_FL_ERROR | CO_FL_SOCK_RD_SH | CO_FL_SOCK_WR_SH);
|
||||
srv_cs->flags &= ~CS_FL_ERROR;
|
||||
srv_cs->flags &= ~(CS_FL_ERROR | CS_FL_EOS | CS_FL_REOS);
|
||||
reuse = 1;
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user