Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around OpenSSL read-ahead induced deadlock
Pending unprocessed data in an SSL object causes SSL_write() to return SSL_WANTS_READ. In case the application only wanted to send messages (not receive), that would cause XCM to wait for new data, when further SSL_write() operations may be possible. This patch makes sure XCM asks OpenSSL to process any pending (buffered) unprocessed TLS data, even though the application is only asking to send messages. An alternative workaround for this issue would be to turn off OpenSSL read-ahead. Such a move would cause a significant loss of TLS transport performance, due to an increased number of system calls. Signed-off-by: Mattias Rönnblom <[email protected]>
- Loading branch information