Commit 2904ea19 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix stats counters



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5218 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b0345c4b
......@@ -488,6 +488,7 @@ FetchBody(struct sess *sp)
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 @@ FetchBody(struct sess *sp)
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment