From d474047d42560b013f18ff62ae95ecea2855beb7 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 6 Feb 2015 18:14:08 +1100 Subject: [PATCH] Drop proxy reference when socket invalidated --- src/generator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generator.c b/src/generator.c index d932826e..a50a40ae 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1633,6 +1633,7 @@ retry: if (unlikely(proxi->cs->fd < 0)) { LOGWARNING("Upstream socket invalidated, will attempt failover"); + proxi = NULL; goto reconnect; }