Commit fe254061 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Possibly better logic.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1043 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent e76e012d
......@@ -41,8 +41,7 @@ vca_kq_sess(struct sess *sp, int arm)
return;
EV_SET(&ki[nki], sp->fd, EVFILT_READ, arm, 0, 0, sp);
if (++nki == NKEV) {
(void)kevent(kq, ki, nki, NULL, 0, NULL);
/* XXX: we could check the error returns here */
assert(kevent(kq, ki, nki, NULL, 0, NULL) <= 0);
nki = 0;
}
}
......@@ -84,14 +83,12 @@ vca_kev(struct kevent *kp)
SES_Delete(sp);
}
return;
}
if (kp->flags == EV_EOF) {
} else if (kp->flags == EV_EOF) {
TAILQ_REMOVE(&sesshead, sp, list);
vca_close_session(sp, "EOF");
SES_Delete(sp);
return;
}
INCOMPL();
}
/*--------------------------------------------------------------------*/
......
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