From: des Date: Fri, 9 Nov 2007 11:19:45 +0000 (+0000) Subject: When diagnostics are enabled, log every kevent that has a session associated X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88a1794d3e78a79d1f3a7285685c4ebd7dc3ce8a;p=varnish 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 --- 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)