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

Use HTC_Rx() directly instead of vca_pollsession() wrapper


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2082 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ee012301
......@@ -98,14 +98,15 @@ vca_kev(const struct kevent *kp)
}
CAST_OBJ_NOTNULL(sp, kp->udata, SESS_MAGIC);
if (kp->data > 0) {
i = vca_pollsession(sp);
if (i == -1)
return;
i = HTC_Rx(sp->htc);
if (i == 0)
return; /* more needed */
VTAILQ_REMOVE(&sesshead, sp, list);
if (i == 0) {
if (i > 0) {
vca_kq_sess(sp, EV_DELETE);
vca_handover(sp, i);
} else {
vca_close_session(sp, "err/poll");
SES_Delete(sp);
}
return;
......
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