Commit 3676c1da authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add missing SessionReuse log entries


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@990 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 3063979c
......@@ -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;
......
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