Skip to content

Non blocking StreamPeerSSL, connect_to_stream fixes

Rafał Mikrut requested to merge github/fork/Faless/ssl_fixes into master

Created by: Faless

Carrying on the discussion in #14970 (closed) I managed to implement non blocking I/O (get_partial_data and put_partial_data) with OpenSSL.

Additionally, to get get_available_bytes to return the actual available and decoded bytes I had to add a poll method that basically just asks OpenSSL to look for pending data. This is an API change, but I see no other way to provide a reliable way of knowing if some bytes are waiting for us. @reduz

I tested a while with AssetLib, HTTPRequest and raw handling, it seems to work. You can find a test project here. SSL_test.zip

Merge request reports