-
Notifications
You must be signed in to change notification settings - Fork 12
Fix Lightway#203 DTLS13 retransmission issue #323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+282
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Code coverage summary for 2c93868: ✅ Region coverage 72% passes |
xv-thomas-leong
previously approved these changes
Jan 13, 2026
de11460 to
4169d5e
Compare
Adjust patch context and line numbers to match actual wolfssl 5.8.4 source: - test_dtls.c: File ends at line 2259, not 2489. Updated context to match test_dtls_memio_wolfio_stateless instead of test_dtls_mtu_split_messages - test_dtls.h: Fixed function declaration order and line numbers
I ran three iterations of Lightway client and observe the packet capture before and after the configuration: BEFORE (1000ms RTX) | Run | Intervals (ms) | |-----|--------------------------------| | 1 | 101 → 1403 → 1601 → 3200 | | 2 | 100 → 202 → 1203 → 1602 → 3202 | | 3 | 101 → 602 → 801 → 1602 → 3202 | --- AFTER (100ms RTX) | Run | Intervals (ms) | |-----|-------------------------------------| | 1 | 102 → 201 → 401 → 801 → 1602 → 3201 | | 2 | 101 → 201 → 401 → 801 → 1601 → 3201 | | 3 | 100 → 201 → 401 → 801 → 1601 → 3201 | - Consistent exponential backoff: 100ms → 200ms → 400ms → 800ms → 1600ms → 3200ms - All 3 runs show identical behavior The retransmission timing now follows the expected exponential backoff pattern consistently across all test runs.
4169d5e to
c8fe800
Compare
kp-thomas-yau
approved these changes
Jan 20, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix for expressvpn/lightway#203
Wolfssl DTLS restricts retransmission within 1 sec which break our logic to scale the timer by 1/10.
This patch fixes it, by allowing wolfssl to take the timer value in milli seconds
From this PR:
https://github.com/wolfSSL/wolfssl/pull/9623/changes