Skip to content

Update to dtls@v4 and DetachedConn - #3513

Draft
JoTurk wants to merge 3 commits into
mainfrom
jo/dtls-v4
Draft

JoTurk wants to merge 3 commits into
mainfrom
jo/dtls-v4

Conversation

@JoTurk

@JoTurk JoTurk commented Sep 2, 2026

Copy link
Copy Markdown
Member

Description

This includes the local patch I'm using to develop dtls@v4 and detachedConn API pion/dtls#1094
Based on pion/ice#967 and pion/stun#291 and includes all the DTLS changes needed to update to @v4 once we tag it.

The DetachedConn API significantly simplifies our conn layer, and removes the mux package and the need to make a fake packetconn which was a case for many bugs and isuses in the past espically with deadlines:

examples: #3295 and #3314 and by extension this made handling graceful shutdown in SCTP really complex and really hard to manage pion/sctp#441 pion/sctp#483 (this can be simplified now) ...

@JoTurk

JoTurk commented Sep 4, 2026

Copy link
Copy Markdown
Member Author

I really hate this Github bug
image

@JoTurk JoTurk closed this Sep 4, 2026
@JoTurk JoTurk reopened this Sep 4, 2026
@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.25373% with 36 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.14%. Comparing base (0a9f86b) to head (af8fbe0).

Files with missing lines Patch % Lines
icetransport.go 82.55% 19 Missing and 7 partials ⚠️
internal/netconn/conn.go 79.16% 5 Missing ⚠️
internal/detacheddtls/conn.go 96.00% 3 Missing and 1 partial ⚠️
dtlstransport.go 98.27% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3513      +/-   ##
==========================================
- Coverage   86.20%   86.14%   -0.06%     
==========================================
  Files          82       81       -1     
  Lines       10511    10628     +117     
==========================================
+ Hits         9061     9156      +95     
- Misses       1012     1032      +20     
- Partials      438      440       +2     
Flag Coverage Δ
go 86.14% <89.25%> (-0.06%) ⬇️

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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant