Skip to content

sped: keep the DTLS 1.3 server's packets on handshake completion - #1024

Merged
fippo merged 2 commits into
mainfrom
spedfix
Oct 1, 2026
Merged

fippo merged 2 commits into
mainfrom
spedfix

Conversation

@fippo

@fippo fippo commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

The DTLS 1.3 server completes when it receives the client's Finished but still has to ACK it. That ACK may be queued before completion is signaled and dropping the outgoing packets loses it, so the client retransmits its last flight a second later.

Only the DTLS 1.2 client has nothing more to send and drops its packets, while it keeps sending ACK attributes until it receives the server's last flight.

(comment now matches what I wrote in libwebrtc)

@JoTurk JoTurk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks you :)

@JoTurk

JoTurk commented Oct 1, 2026

Copy link
Copy Markdown
Member

our commit lint rules are a bit annoying ...

The DTLS 1.3 server completes when it receives the client's Finished
but still has to ACK it. That ACK may be queued before completion is
signaled and dropping the outgoing packets loses it, so the client
retransmits its last flight a second later.

Only the DTLS 1.2 client has nothing more to send and drops its
packets, while it keeps sending ACK attributes until it receives the
server's last flight.
@codecov

codecov Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.76%. Comparing base (4ee08eb) to head (fb4028f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1024      +/-   ##
==========================================
+ Coverage   91.68%   91.76%   +0.07%     
==========================================
  Files          45       45              
  Lines        5439     5439              
==========================================
+ Hits         4987     4991       +4     
+ Misses        452      448       -4     
Flag Coverage Δ
go 91.76% <100.00%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fippo
fippo merged commit 173c19f into main Oct 1, 2026
19 checks passed
@fippo
fippo deleted the spedfix branch October 1, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants