r5218 - trunk/varnish-cache/bin/varnishd
phk at varnish-cache.org
phk at varnish-cache.org
Thu Sep 16 06:04:50 CEST 2010
Author: phk
Date: 2010-09-16 06:04:50 +0200 (Thu, 16 Sep 2010)
New Revision: 5218
Modified:
trunk/varnish-cache/bin/varnishd/cache_fetch.c
Log:
Fix stats counters
Modified: trunk/varnish-cache/bin/varnishd/cache_fetch.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_fetch.c 2010-09-15 19:01:42 UTC (rev 5217)
+++ trunk/varnish-cache/bin/varnishd/cache_fetch.c 2010-09-16 04:04:50 UTC (rev 5218)
@@ -488,6 +488,7 @@
VDI_CloseFd(sp);
return (__LINE__);
} else if (http_HdrIs(hp, H_Connection, "keep-alive")) {
+ sp->wrk->stats.fetch_zero++;
/*
* If we have Connection: keep-alive, it cannot possibly be
* EOF encoded, and since it is neither length nor chunked
@@ -510,10 +511,10 @@
cls = fetch_eof(sp, sp->wrk->htc);
mklen = 1;
} else {
- sp->wrk->stats.fetch_zero++;
+ sp->wrk->stats.fetch_eof++;
/*
- * Assume zero length
- * XXX: ???
+ * This is what happens when HTTP/1.0 backends claim
+ * to be HTTP/1.1, assume EOF
*/
cls = fetch_eof(sp, sp->wrk->htc);
mklen = 1;
More information about the varnish-commit
mailing list