1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/lib/mbedtls_wrapper
Andy Green 46b04f4ba4 wrapper: make SSL_accept nonblocking
The mbedTLS / OpenSSL wrapper spins for the duration of the
handshake, which is a slow 31ms on my x86_64 box (by comparison
it's ~1ms on actual OpenSSL on the same box).

This doesn't change the 31ms but it stops us spinning during the
accept and has us retry on POLLIN instead like OpenSSL.

Note this also fixes the endemic mismatches in returncode
between mbedTLS and OpenSSL semantics...
2017-10-16 17:13:49 +08:00
..
include openssl-wrapper: add APLN accessors 2017-10-16 17:13:48 +08:00
library openssl-wrapper: fix SSL_shutdown 2017-10-16 17:13:49 +08:00
platform wrapper: make SSL_accept nonblocking 2017-10-16 17:13:49 +08:00