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 <robert.lubos@nordicsemi.no>
@rlubos
Copy link
Contributor Author

rlubos commented Oct 20, 2025

@pdgendt Could you check?

@kartben kartben merged commit 524b919 into zephyrproject-rtos:main Oct 20, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

5 participants