From 8386d8aede7cf29131de46beca946aaeb56825aa Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 24 Feb 2015 22:46:01 +1100 Subject: [PATCH] Reset the recruit count in the event of failed proxy_alive test --- src/generator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generator.c b/src/generator.c index 98e9a00d..912aa696 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1725,7 +1725,8 @@ retry: if (alive) { if (--parent->recruit > 0) recruit = true; - } + } else /* Reset so the next request will try again */ + parent->recruit = 0; mutex_unlock(&parent->proxy_lock); if (recruit)