r2555 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Mar 5 14:18:39 CET 2008


Author: phk
Date: 2008-03-05 14:18:39 +0100 (Wed, 05 Mar 2008)
New Revision: 2555

Modified:
   trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c
Log:
Check EOF as bitflag in kqueue return flags


Modified: trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c	2008-03-04 11:42:00 UTC (rev 2554)
+++ trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c	2008-03-05 13:18:39 UTC (rev 2555)
@@ -132,7 +132,7 @@
 		VTAILQ_REMOVE(&sesshead, sp, list);
 		vca_handover(sp, i);
 		return;
-	} else if (kp->flags == EV_EOF) {
+	} else if (kp->flags & EV_EOF) {
 		VTAILQ_REMOVE(&sesshead, sp, list);
 		vca_close_session(sp, "EOF");
 		SES_Delete(sp);




More information about the varnish-commit mailing list