diff --git a/src/stream.c b/src/stream.c index fc113ec19..172d78c86 100644 --- a/src/stream.c +++ b/src/stream.c @@ -555,7 +555,6 @@ static int sess_update_st_con_tcp(struct stream *s) struct stream_interface *si = &s->si[1]; struct channel *req = &s->req; struct channel *rep = &s->res; - struct connection *srv_conn = __objt_conn(si->end); /* If we got an error, or if nothing happened and the connection timed * out, we must give up. The CER state handler will take care of retry @@ -575,7 +574,7 @@ static int sess_update_st_con_tcp(struct stream *s) si->exp = TICK_ETERNITY; si->state = SI_ST_CER; - conn_force_close(srv_conn); + si_release_endpoint(si); if (si->err_type) return 0;