Skip to content

udpnat: fix session retirement and packet cleanup - #111

Open
svlavr wants to merge 8 commits into
SagerNet:devfrom
svlavr:codex/udpnat-complete
Open

svlavr wants to merge 8 commits into
SagerNet:devfrom
svlavr:codex/udpnat-complete

Conversation

@svlavr

@svlavr svlavr commented Sep 23, 2026

Copy link
Copy Markdown

A retired UDP handler can delete a replacement association with the same key. I fixed this with identity-checked removal. The patch also makes queue shutdown and buffer cleanup safe, preserves source rebinding, and reports short packet copies.

The retirement regression fails on unmodified dev and passes with the patch. Targeted race tests and vet pass. The full Windows suite is not green: three winiphlpapi tests failed with local socket permission errors.

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.

2 participants