Commit cea90218 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

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/trunk/varnish-cache@1942 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 825112f2
......@@ -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