From 88a1794d3e78a79d1f3a7285685c4ebd7dc3ce8a Mon Sep 17 00:00:00 2001 From: des Date: Fri, 9 Nov 2007 11:19:45 +0000 Subject: [PATCH] When diagnostics are enabled, log every kevent that has a session associated with it. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2246 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_acceptor_kqueue.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c b/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c index 54631a3a..2e7ab013 100644 --- a/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c +++ b/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c @@ -98,6 +98,11 @@ vca_kev(const struct kevent *kp) return; } CAST_OBJ_NOTNULL(sp, kp->udata, SESS_MAGIC); +#ifdef DIAGNOSTICS + VSL(SLT_Debug, sp->id, "sp %p kev data %lu flags 0x%x%s", + sp, (unsigned long)kp->data, kp->flags, + (kp->flags & EV_EOF) ? " EOF" : ""); +#endif if (kp->data > 0) { i = HTC_Rx(sp->htc); if (i == 0) -- 2.39.5