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
8ebc7a6b13
commit
7b224e33b5
1 changed files with 1 additions and 4 deletions
|
@ -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 a new issue