r2246 - trunk/varnish-cache/bin/varnishd

des at projects.linpro.no des at projects.linpro.no
Fri Nov 9 12:19:46 CET 2007


Author: des
Date: 2007-11-09 12:19:45 +0100 (Fri, 09 Nov 2007)
New Revision: 2246

Modified:
   trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c
Log:
When diagnostics are enabled, log every kevent that has a session associated
with it.


Modified: trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c	2007-11-08 21:34:15 UTC (rev 2245)
+++ trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c	2007-11-09 11:19:45 UTC (rev 2246)
@@ -98,6 +98,11 @@
 		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)




More information about the varnish-commit mailing list