mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
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:
parent
fd0c2dcf00
commit
25b4015363
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user