howto-openssl
howto-openssl copied to clipboard
The epoll_tls_client.c example is wrong
First, it seems to be busy-looping when calling SSL_connect(). Second, it only calls SSL_read() when the socket is readable and only calls SSL_write() when it is writeable. However, SSL_write() can be blocked for reading, for example during renegotiation (see manual page).
This is a problem because this example is one of the first result when looking for openssl epoll with some search engines.