Commit bdda5b34 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Merge small part of r4215: Charge sessions when herding

In 2.0.5 we default to lingering for a bit which can cause sessions to
not be charged for a long time.  This fixes it.



git-svn-id: http://www.varnish-cache.org/svn/branches/2.0@4398 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent bf55635c
......@@ -105,6 +105,7 @@ cnt_wait(struct sess *sp)
if (i == 0) {
WSL(sp->wrk, SLT_Debug, sp->fd, "herding");
VSL_stats->sess_herd++;
SES_Charge(sp);
sp->wrk = NULL;
vca_return_session(sp);
return (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