Commit 17880a76 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Assert that we found all active fd's



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4560 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 1bcc3d37
...@@ -156,6 +156,9 @@ vca_main(void *arg) ...@@ -156,6 +156,9 @@ vca_main(void *arg)
if (pollfd[fd].revents) { if (pollfd[fd].revents) {
v--; v--;
i = HTC_Rx(sp->htc); i = HTC_Rx(sp->htc);
if (pollfd[fd].revents != POLLIN)
VSL(SLT_Debug, fd, "Poll: %x / %d",
pollfd[fd].revents, i);
VTAILQ_REMOVE(&sesshead, sp, list); VTAILQ_REMOVE(&sesshead, sp, list);
if (i == 0) { if (i == 0) {
/* Mov to front of list for speed */ /* Mov to front of list for speed */
...@@ -172,6 +175,7 @@ vca_main(void *arg) ...@@ -172,6 +175,7 @@ vca_main(void *arg)
SES_Delete(sp); SES_Delete(sp);
} }
} }
assert(v == 0);
} }
NEEDLESS_RETURN(NULL); NEEDLESS_RETURN(NULL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment