diff --git a/src/proto_http.c b/src/proto_http.c index 425fde648..7500798e7 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -2686,10 +2686,8 @@ int process_srv(struct session *t) } else { fd_delete(t->srv_fd); - if (t->srv) { + if (t->srv) t->srv->cur_sess--; - sess_change_server(t, NULL); - } if (!(req->flags & BF_WRITE_STATUS)) conn_err = SN_ERR_SRVTO; // it was a connect timeout.