Skip to content

Conversation

jbaldwin
Copy link
Owner

@jbaldwin jbaldwin commented Jan 5, 2024

SSL_read_ex and SSL_write_ex need to be recalled with the same paramters if they return SSL_ERROR_WANT_READ|WRITE. This was left up to the user before.. which is cumbersome and not very intuitive. Now the send() and recv() functions on the net::tls::client are coro:task's so they can properly call SSL_read|write_ex as many times as required. They now also support a timeout since these calls could take longer than a traditional net::tcp::client send()/recv() call.

Closes #100

@jbaldwin jbaldwin self-assigned this Jan 5, 2024
SSL_read_ex and SSL_write_ex need to be recalled with the same paramters
if they return SSL_ERROR_WANT_READ|WRITE.  This was left up to the user
before.. which is cumbersome and not very intuitive. Now the send() and
recv() functions on the net::tls::client are coro:task's so they can
properly call SSL_read|write_ex as many times as required. They now also
support a timeout since these calls could take longer than a traditional
net::tcp::client send()/recv() call.

Closes #100
@jbaldwin jbaldwin force-pushed the issue-100/tls_client_hanging branch from 29937c5 to 7390870 Compare January 5, 2024 00:58
@jbaldwin jbaldwin merged commit 93d9be5 into main Jan 5, 2024
@jbaldwin jbaldwin deleted the issue-100/tls_client_hanging branch January 5, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ssl/tls tcp_client hanging on reads
1 participant