Skip to content

Conversation

@Petezah
Copy link

@Petezah Petezah commented Jan 6, 2026

Similar to mbedtls implementation, if unitytls_tlsctx_write was previously blocked, it must be called with the same amount of bytes again, or it will lose bytes , e.g. reporting all was sent but they were not. If that happens, the other side errors and hangs up. Remember the blocked length and use that when it is set.

See also:
curl#15846
curl@a2622cd

Similar to mbedtls implementation, if unitytls_tlsctx_write was
previously blocked, it must be called with the same amount of bytes
again, or it will lose bytes , e.g. reporting all was sent but they
were not.  If that happens, the other side errors and hangs up.
Remember the blocked length and use that when it is set.

See also:
curl#15846
curl@a2622cd
@github-actions github-actions bot added the TLS label Jan 6, 2026
@Petezah Petezah merged commit cabec2f into master Jan 6, 2026
17 of 132 checks passed
@Petezah Petezah deleted the pdunshee/unitytls-blocked-send-fix branch January 6, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants