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:
Olivier Houchard 2018-12-13 15:37:25 +01:00 committed by Willy Tarreau
parent 211d540a81
commit ab8b075ff0

View File

@ -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 {