]> err.no Git - varnish/commitdiff
When diagnostics are enabled, log every kevent that has a session associated
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 9 Nov 2007 11:19:45 +0000 (11:19 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 9 Nov 2007 11:19:45 +0000 (11:19 +0000)
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

index 54631a3a731adf3e599b43daea0282bc4ed9d6a1..2e7ab013483b8ab72fbcbc55cbefb6d4e3d42d04 100644 (file)
@@ -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)