summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2015-02-20 00:56:32 +0000
committerbluhm <bluhm@openbsd.org>2015-02-20 00:56:32 +0000
commit8fb5aed9036c435866a2e1dceff088f6ceb5f677 (patch)
treeef434026aa77f35137361040ece1beefa2330350 /lib/libc
parentMove the splsoftnet() hiding in the declarations closer to the code. (diff)
downloadwireguard-openbsd-8fb5aed9036c435866a2e1dceff088f6ceb5f677.tar.xz
wireguard-openbsd-8fb5aed9036c435866a2e1dceff088f6ceb5f677.zip
When syslogd is writing over TLS, the error "SSL3_WRITE_PENDING:bad
write retry" may occur. Unfortunately libtls tls_write() has inherited the strange semantics regarding partial writes and buffer movement from SSL_write(). This will be investigated after unlock, the goal is to have the behavior of write(2) in libtls. For now add a workaround in syslogd. If tls_write() indicates that it needs a read or write again, stop modifying the output buffer. Instead drop and count the syslog messages. After writing over TLS was successful, continue to queue the messages. This solution has minimum inpact and will be improved after 5.7 release. discussed with tedu@ reyk@ jsing@; OK tedu@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions