Skip to content

Conversation

rlubos
Copy link
Contributor

@rlubos rlubos commented Oct 10, 2025

mbedtls_ssl_write() function has a limitation, that when the function returns MBEDTLS_ERR_SSL_WANT_WRITE, the consecutive call to this function have to contain the same data as the previous call. As there doesn't seem to be a viable workaround for this at the socket layer (other than dropping non-blocking support which is not an option), we need to carry this requirement for non-blocking sockets as well, therefore document this case in secure sockets documentation.

mbedtls_ssl_write() function has a limitation, that when the function
returns MBEDTLS_ERR_SSL_WANT_WRITE, the consecutive call to this
function have to contain the same data as the previous call. As there
doesn't seem to be a viable workaround for this at the socket layer
(other than dropping non-blocking support which is not an option), we
need to carry this requirement for non-blocking sockets as well,
therefore document this case in secure sockets documentation.

Signed-off-by: Robert Lubos <[email protected]>
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants