sp->t_end = TIM_real();
sp->wrk->used = sp->t_end;
+ assert(!isnan(sp->wrk->used));
if (sp->xid == 0) {
sp->t_req = sp->t_end;
sp->t_resp = sp->t_end;
WSL_Flush(sp->wrk, 0);
/* If we did an ESI include, don't mess up our state */
- if (sp->esis > 0)
+ if (sp->esis > 0) {
+ assert(!isnan(sp->wrk->used));
return (1);
+ }
sp->t_req = NAN;
sp->obj->cacheable = 1;
if (sp->obj->objhead != NULL) {
VRY_Create(sp);
+ assert(!isnan(sp->wrk->used));
EXP_Insert(sp->obj, sp->wrk->used);
HSH_Unbusy(sp);
}
/* Receive a HTTP protocol request */
HTC_Init(sp->htc, sp->ws, sp->fd);
sp->wrk->used = sp->t_open;
+ assert(!isnan(sp->wrk->used));
sp->wrk->acct.sess++;
SES_RefSrcAddr(sp);
do
*/
if (isnan(sp->wrk->used))
sp->wrk->used = TIM_real();
+ assert(!isnan(sp->wrk->used));
SES_Charge(sp);
return (1);
}
/* XXX: VSL something */
INCOMPL();
sp->step = STP_DONE;
+ assert(!isnan(sp->wrk->used));
return (1);
}
sp->step = STP_PIPE;
VSL_stats->client_req++; /* XXX not locked */
sp->t_req = TIM_real();
sp->wrk->used = sp->t_req;
+ assert(!isnan(sp->wrk->used));
sp->wrk->acct.req++;
/* Assign XID and log */