From 88d96fe61379f7eedce140de9a7b532f932a7e13 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 19 Aug 2008 20:47:44 +0000 Subject: [PATCH] Don't call a zero byte response a "Good Recv". git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3111 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_backend_poll.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/varnish-cache/bin/varnishd/cache_backend_poll.c b/varnish-cache/bin/varnishd/cache_backend_poll.c index 3a3b1b6d..8b7a3f7c 100644 --- a/varnish-cache/bin/varnishd/cache_backend_poll.c +++ b/varnish-cache/bin/varnishd/cache_backend_poll.c @@ -221,6 +221,9 @@ vbp_poke(struct vbp_target *vt) return; } + if (rlen == 0) + return; + /* So we have a good receive ... */ t_now = TIM_real(); vt->last = t_now - t_start; -- 2.39.5