Commit 5d2ca251 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Merged revisions 1942 via svnmerge from

svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache

........
  r1942 | phk | 2007-09-12 08:12:18 +0200 (Wed, 12 Sep 2007) | 7 lines
  
  Make sure to initialize t_end if we drop sessions.
  
  Fixes #132
  
  Many thanks to Janis Putrams for debugging this.
........


git-svn-id: http://www.varnish-cache.org/svn/branches/1.1@1954 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 9d97a472
......@@ -310,6 +310,7 @@ WRK_QueueSession(struct sess *sp)
(params->wthread_max * params->overflow_max) / 100)) {
VSL_stats->n_wrk_drop++;
UNLOCK(&tmtx);
sp->t_end = TIM_real();
vca_close_session(sp, "dropped");
vca_return_session(sp);
return;
......
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