kqueue: also use EV_ONESHOT for read events

This makes the kernel's state agree with our handler pointer.
SSL may need to suspend selecting for reading to write
something, e.g. with renegotiation.
libratbox r25223
This commit is contained in:
Jilles Tjoelker 2008-04-11 11:08:37 +02:00
parent 8ebc7a6b13
commit 7b224e33b5

View file

@ -97,10 +97,7 @@ kq_update_events(rb_fde_t * F, short filter, PF * handler)
if(handler != NULL)
{
if(filter == EVFILT_WRITE)
kep_flags = (EV_ADD | EV_ONESHOT);
else
kep_flags = EV_ADD;
kep_flags = EV_ADD | EV_ONESHOT;
}
else
{