git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2093
d4fa192b-c00b-0410-8231-
f00ffab90ce4
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));
}
VSL_stats->sess_closed++;
assert(!isnan(sp->wrk->used));
sp->wrk = NULL;
- vca_return_session(sp);
+ SES_Delete(sp);
return (1);
}
UNLOCK(&tmtx);
sp->t_end = TIM_real();
vca_close_session(sp, "dropped");
- vca_return_session(sp);
+ SES_Delete(sp);
return;
}
/*