From: phk Date: Fri, 15 Sep 2006 10:03:24 +0000 (+0000) Subject: Add missing SessionReuse log entries X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6b3190fd5c5cad97b09f6db5fc90b6745780452;p=varnish Add missing SessionReuse log entries git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@990 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index 4260f540..807752c2 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -175,6 +175,7 @@ cnt_done(struct sess *sp) } if (params->session_grace == 0) { VSL_stats->sess_herd++; + VSL(SLT_SessionReuse, sp->fd, "%s %s", sp->addr, sp->port); sp->wrk->idle = sp->t_open.tv_sec; vca_return_session(sp); return (1); @@ -188,11 +189,11 @@ cnt_done(struct sess *sp) vca_close_session(sp, "EOF"); } else if (i == 1 && (fds[0].revents & POLLIN)) { VSL_stats->sess_ready++; - VSL(SLT_SessionReuse, sp->fd, "%s %s", - sp->addr, sp->port); + VSL(SLT_SessionReuse, sp->fd, "%s %s", sp->addr, sp->port); sp->step = STP_AGAIN; return (0); } else { + VSL(SLT_SessionReuse, sp->fd, "%s %s", sp->addr, sp->port); VSL_stats->sess_herd++; } sp->wrk->idle = sp->t_open.tv_sec;