r2087 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Mon Oct 8 12:33:47 CEST 2007
Author: phk
Date: 2007-10-08 12:33:46 +0200 (Mon, 08 Oct 2007)
New Revision: 2087
Modified:
trunk/varnish-cache/bin/varnishd/cache_httpconn.c
Log:
Catch EOF on reads instead of looping.
Modified: trunk/varnish-cache/bin/varnishd/cache_httpconn.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_httpconn.c 2007-10-08 10:25:47 UTC (rev 2086)
+++ trunk/varnish-cache/bin/varnishd/cache_httpconn.c 2007-10-08 10:33:46 UTC (rev 2087)
@@ -144,7 +144,7 @@
return (-2);
}
i = read(htc->fd, htc->rxbuf.e, i);
- if (i < 0) {
+ if (i <= 0) {
WS_ReleaseP(htc->ws, htc->rxbuf.b);
return (-1);
}
More information about the varnish-commit
mailing list