BUG/MEDIUM: connection: Just make sure we closed the fd on connection failure.

When the connection failed, we don't really want to close the conn_stream,
as we're probably about to retry, so just make sure the file descriptor is
closed.
This commit is contained in:
Olivier Houchard 2018-12-13 15:40:16 +01:00 committed by Willy Tarreau
parent fd0c2dcf00
commit 25b4015363

View File

@ -650,11 +650,10 @@ static int sess_update_st_con_tcp(struct stream *s)
si->state = SI_ST_CER;
if (srv_cs)
cs_close(srv_cs);
else if (conn) {
conn = srv_cs->conn;
if (conn) {
conn_stop_tracking(conn);
conn_full_close(conn);
conn_free(conn);
}
if (si->err_type)