git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1684
d4fa192b-c00b-0410-8231-
f00ffab90ce4
#include <stdio.h>
#include <errno.h>
+#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
sp->xid, sp->t_req, sp->t_end, dh, dp, da);
sp->xid = 0;
- sp->t_open = sp->t_end;
SES_Charge(sp);
+ sp->t_open = sp->t_end;
+ sp->t_req = NAN;
+ sp->t_resp = NAN;
+ sp->t_end = NAN;
WSL_Flush(sp->wrk);
if (sp->fd >= 0 && sp->doclose != NULL)
vca_close_session(sp, sp->doclose);
ses_sum_acct(&sp->acct, a);
if (sp->srcaddr != NULL) {
+ /* XXX: only report once per second ? */
CHECK_OBJ(sp->srcaddr, SRCADDR_MAGIC);
LOCK(&sp->srcaddr->sah->mtx);
ses_sum_acct(&sp->srcaddr->acct, a);