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

Initialize all timestamps in the session to NAN


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1682 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 6c59e38d
......@@ -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;
......
......@@ -50,6 +50,7 @@
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <sys/uio.h>
#include <sys/socket.h>
......@@ -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) {
......
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