From d17685b31de133ce03c06c65e2bbdec23f229b54 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 18 Jan 2008 10:42:27 +0000 Subject: [PATCH] Make sure to terminate the movement of a request's body if we get an 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_fetch.c b/varnish-cache/bin/varnishd/cache_fetch.c index cae88124..4c01a73b 100644 --- a/varnish-cache/bin/varnishd/cache_fetch.c +++ b/varnish-cache/bin/varnishd/cache_fetch.c @@ -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) -- 2.39.5