r962 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Sep 11 12:35:26 CEST 2006


Author: phk
Date: 2006-09-11 12:35:26 +0200 (Mon, 11 Sep 2006)
New Revision: 962

Modified:
   trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c
Log:
Ignore kevent error return entries


Modified: trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c	2006-09-11 10:16:02 UTC (rev 961)
+++ trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c	2006-09-11 10:35:26 UTC (rev 962)
@@ -68,8 +68,6 @@
 			i -= sizeof ss[0];
 		}
 		assert(i == 0);
-		assert(j > 0);
-		assert(j <= NKEV);
 		return;
 	}
 	CAST_OBJ_NOTNULL(sp, kp->udata, SESS_MAGIC);
@@ -122,6 +120,8 @@
 		assert(n >= 1 && n <= NKEV);
 		nki = 0;
 		for (kp = ke, j = 0; j < n; j++, kp++) {
+			if (kp->flags & EV_ERROR)
+				continue;
 			if (kp->filter == EVFILT_TIMER) {
 				dotimer = 1;
 				continue; 




More information about the varnish-commit mailing list