diff --git a/src/generator.c b/src/generator.c index ab9384ba..15053041 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1931,6 +1931,7 @@ retry: if (unlikely(proxi->cs->fd < 0)) { LOGWARNING("Upstream proxy %d:%s socket invalidated, will attempt failover", proxi->id, proxi->cs->url); + drop_subproxies(proxi); proxi->alive = false; proxi = NULL; goto reconnect;