openssl_stream.c
8.12 KB
-
openssl: don't try to handle WANT_READ or WANT_WRITE · 77bffc2c
We use a blocking socket and set the mode to AUTO_RETRY which means that `SSL_write` and `SSL_read` will only return once the read or write has been completed. We therefore don't need to handle partial writes or re-try read due to a regenotiation. While here, consider that a zero also indicates an error condition.
Carlos Martín Nieto committed