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

Don't use vca_return_session() when we can SES_Delete()


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2093 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 4fa003a3
......@@ -246,10 +246,8 @@ vca_return_session(struct sess *sp)
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
AZ(sp->obj);
AZ(sp->vcl);
if (sp->fd < 0)
SES_Delete(sp);
else
assert(sizeof sp == write(vca_pipes[1], &sp, sizeof sp));
assert(sp->fd >= 0);
assert(sizeof sp == write(vca_pipes[1], &sp, sizeof sp));
}
......
......@@ -217,7 +217,7 @@ cnt_done(struct sess *sp)
VSL_stats->sess_closed++;
assert(!isnan(sp->wrk->used));
sp->wrk = NULL;
vca_return_session(sp);
SES_Delete(sp);
return (1);
}
......
......@@ -313,7 +313,7 @@ WRK_QueueSession(struct sess *sp)
UNLOCK(&tmtx);
sp->t_end = TIM_real();
vca_close_session(sp, "dropped");
vca_return_session(sp);
SES_Delete(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