From a2131e438deb4db74f52e19fd91d6d588983eb71 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 15 Feb 2015 14:49:12 +1100 Subject: [PATCH] Drop subproxies when parent proxy is invalidated --- src/generator.c | 1 + 1 file changed, 1 insertion(+) 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;