howto-openssl icon indicating copy to clipboard operation
howto-openssl copied to clipboard

The epoll_tls_client.c example is wrong

Open hvenev opened this issue 7 years ago • 0 comments

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.

hvenev avatar Feb 27 '18 18:02 hvenev