From: phk Date: Fri, 13 Jul 2007 07:11:54 +0000 (+0000) Subject: Initialize all timestamps in the session to NAN X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7464bde5ae3eadd98f8a79b5825cef5300d83cad;p=varnish Initialize all timestamps in the session to NAN git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1682 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache.h b/varnish-cache/bin/varnishd/cache.h index e58fe494..99d012e7 100644 --- a/varnish-cache/bin/varnishd/cache.h +++ b/varnish-cache/bin/varnishd/cache.h @@ -300,6 +300,7 @@ struct sess { const char *doclose; struct http *http; + /* Timestamps, all on TIM_real() timescale */ double t_open; double t_req; double t_resp; diff --git a/varnish-cache/bin/varnishd/cache_session.c b/varnish-cache/bin/varnishd/cache_session.c index 5833d838..d4efdfb0 100644 --- a/varnish-cache/bin/varnishd/cache_session.c +++ b/varnish-cache/bin/varnishd/cache_session.c @@ -50,6 +50,7 @@ #include #include +#include #include #include @@ -308,6 +309,10 @@ SES_New(struct sockaddr *addr, unsigned len) sp->mysockaddr = (void*)(&sm->sockaddr[1]); sp->mysockaddrlen = sizeof(sm->sockaddr[1]); sp->sockaddr->sa_family = sp->mysockaddr->sa_family = PF_UNSPEC; + sp->t_open = NAN; + sp->t_req = NAN; + sp->t_resp = NAN; + sp->t_end = NAN; assert(len <= sp->sockaddrlen); if (addr != NULL) {