From: phk Date: Tue, 19 Aug 2008 20:47:44 +0000 (+0000) Subject: Don't call a zero byte response a "Good Recv". X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88d96fe61379f7eedce140de9a7b532f932a7e13;p=varnish 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 --- 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;