Skip to content

fix: bound DTLS handshake maintenance - #95

Merged
cvik merged 1 commit into
mainfrom
fix/dtls-maintenance
Oct 12, 2026
Merged

cvik merged 1 commit into
mainfrom
fix/dtls-maintenance

Conversation

@cvik

@cvik cvik commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Stop scanning all 65,536 DTLS capacity slots after every completion batch. Check handshake retransmissions at a 50ms cadence and traverse the existing live-session chain, capturing successors before timeout release. No public API, crypto, capacity or socket tuning changes.

Adds regression coverage for timeout removal, slot reuse, cadence, uncached/established sessions and retransmission backoff. Debug and ReleaseSafe: 183/183 tests pass. Debug and ReleaseFast artifacts build.

60 matched DTLS benchmark runs: aggregate mean throughput +0.6% with one worker and +12.1% with four workers (individual four-worker cases +7.4–15.1%). A 36-run plain-CON control is approximately unchanged. Profiling removes the original 70.2% capacity-scan hotspot and roughly halves sampled user CPU; this fix does not claim a 2x throughput improvement.

Reproduction, limitations and raw measurements are in docs/DTLS_MAINTENANCE.md and its linked JSON datasets.

@cvik
cvik merged commit 51d6d76 into main Oct 12, 2026
1 check passed
@cvik
cvik deleted the fix/dtls-maintenance branch October 12, 2026 19:56
@cvik cvik mentioned this pull request Oct 16, 2026
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.

1 participant