]> err.no Git - varnish/commitdiff
Make sure to terminate the movement of a request's body if we get an
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 18 Jan 2008 10:42:27 +0000 (10:42 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 18 Jan 2008 10:42:27 +0000 (10:42 +0000)
EOF from the client.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2355 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_fetch.c

index cae88124acfe7eeff736b359b2fe2d53a65435f4..4c01a73bd06149fd999207cc47d384d49285998f 100644 (file)
@@ -271,7 +271,7 @@ FetchReqBody(struct sess *sp)
                        else
                                read = content_length;
                        read = HTC_Read(sp->htc, buf, read);
-                       if (read < 0)
+                       if (read <= 0)
                                return (1);
                        content_length -= read;
                        if (!sp->sendbody)