summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sched.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2015-09-20 21:49:54 +0000
committerbluhm <bluhm@openbsd.org>2015-09-20 21:49:54 +0000
commitf770f76f65d8af0778ba1c339606459ac9f07d15 (patch)
tree9d9f8b26c05f95902f7984d8edbe93b4ffd4d73d /sys/kern/kern_sched.c
parentPut memory barriers in the appropriate place. (diff)
downloadwireguard-openbsd-f770f76f65d8af0778ba1c339606459ac9f07d15.tar.xz
wireguard-openbsd-f770f76f65d8af0778ba1c339606459ac9f07d15.zip
Misuse of libevent in TLS read and write might have caused strange
event loss in syslogd. The ev_read and ev_write event structures were used for both EV_READ and EV_WRITE events intermixedly. The correct way is to use each event for its read and write purpose and instead switch the handler. Then libevent is no longer confused. When doing TLS read and a TLS_WANT_POLLOUT occures, call event_set() for the write event to change the callback to read. As there might be an event scheduled on the event, call event_del() before event_set(). After a successful TLS read, change back the write event. Add analog code for TLS write and handshake. OK beck@
Diffstat (limited to 'sys/kern/kern_sched.c')
0 files changed, 0 insertions, 0 deletions