r2355 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Fri Jan 18 11:42:28 CET 2008
Author: phk
Date: 2008-01-18 11:42:27 +0100 (Fri, 18 Jan 2008)
New Revision: 2355
Modified:
trunk/varnish-cache/bin/varnishd/cache_fetch.c
Log:
Make sure to terminate the movement of a request's body if we get an
EOF from the client.
Modified: trunk/varnish-cache/bin/varnishd/cache_fetch.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_fetch.c 2008-01-18 07:35:17 UTC (rev 2354)
+++ trunk/varnish-cache/bin/varnishd/cache_fetch.c 2008-01-18 10:42:27 UTC (rev 2355)
@@ -271,7 +271,7 @@
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)
More information about the varnish-commit
mailing list