Skip to content

Preserve TLS write buffers across WebSocket retries - #44

Merged
tridge merged 2 commits into
ArduPilot:mainfrom
tridge:pr-TLS-fix
Sep 10, 2026
Merged

tridge merged 2 commits into
ArduPilot:mainfrom
tridge:pr-TLS-fix

Conversation

@tridge

@tridge tridge commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Appending video while SSL_write was pending could move its input buffer or change its length, disconnecting TLS viewers with a bad write retry error. Retain one stable TLS record until the write succeeds and rebuild all WebSocket users when its layout changes.

Add real TLS 1.2 and TLS 1.3 backpressure regressions that queue additional video before the pending write completes.

Appending video while SSL_write was pending could move its input buffer or change its length, disconnecting TLS viewers with a bad write retry error. Retain one stable TLS record until the write succeeds and rebuild all WebSocket users when its layout changes.

Add real TLS 1.2 and TLS 1.3 backpressure regressions that queue additional video before the pending write completes.
TDB refuses duplicate handles in one process, so the threaded proxy simulation intermittently fails with EBUSY. Use a spawned process to match production, check its exit status and exact counter updates, and include both TLS retry regressions in the CI test list.
@tridge
tridge merged commit f5341de into ArduPilot:main Sep 10, 2026
2 checks passed
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.

1 participant