diff --git a/src/backend.c b/src/backend.c index d52f484cb..e82775058 100644 --- a/src/backend.c +++ b/src/backend.c @@ -1147,7 +1147,8 @@ int connect_server(struct stream *s) } } } - if (!srv_conn) { + if (reuse == 0) { + srv_conn = NULL; for (i = 0; i < MAX_SRV_LIST; i++) { if (!LIST_ISEMPTY(&s->sess->srv_list[i].list)) { srv_conn = LIST_ELEM(&s->sess->srv_list[i].list,