From 50728b52676b6e5701352ed09446a97e9d4fe17e Mon Sep 17 00:00:00 2001 From: andersb Date: Wed, 2 Aug 2006 22:53:56 +0000 Subject: [PATCH] Added SessionReuse so I now write a logline for SessionClose and SessionReuse. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@614 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishncsa/varnishncsa.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/varnish-cache/bin/varnishncsa/varnishncsa.c b/varnish-cache/bin/varnishncsa/varnishncsa.c index e9e8702f..e54089b4 100644 --- a/varnish-cache/bin/varnishncsa/varnishncsa.c +++ b/varnish-cache/bin/varnishncsa/varnishncsa.c @@ -106,6 +106,7 @@ extended_log_format(unsigned char *p, char *w_opt) j = strlen(p + 4) - strlen(tmpPtr); // length of IP strncpy(ll[u].df_h, p + 4, j); ll[u].df_h[j] = '\0'; // put on a NULL at end of buffer. + printf("New session [%d]: %s \n",u, ll[u].df_h); break; @@ -117,19 +118,19 @@ extended_log_format(unsigned char *p, char *w_opt) break; - case SLT_StatAddr: - - break; - case SLT_SessionClose: - printf("Closing session [%d]: %s %s\n",u, ll[u].df_h, ll[u].df_U); + printf("Session close [%d]: %s %s\n",u, ll[u].df_h, ll[u].df_U); + break; + + case SLT_SessionReuse: + printf("Session reuse [%d]: %s %s\n",u, ll[u].df_h, ll[u].df_U); break; + default: + break; } - - if (0) { } -- 2.39.5