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:
parent
8403b99ac3
commit
c50bb62ccd
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue