]> err.no Git - varnish/commitdiff
Don't call a zero byte response a "Good Recv".
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 19 Aug 2008 20:47:44 +0000 (20:47 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 19 Aug 2008 20:47:44 +0000 (20:47 +0000)
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

index 3a3b1b6d50b03e15e45da5faa388f5ab889eae69..8b7a3f7c3322bededf75aed02a7d3050388485ca 100644 (file)
@@ -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;