Skip to content
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

fix: (native conn.go) closeMatch logic should really close all matching conns; closes PacketConn also #248

Merged
merged 5 commits into from
Jul 30, 2024

Conversation

shunf4
Copy link

@shunf4 shunf4 commented Jun 10, 2024

In closeMatch, the callback function returns false when the logic not getting into matching branch. This is not correct; as per xsync.MapOf, if the callback function f returns false, Range function stops the iteration. f should always return true.

Also considering at present the massive adoption of reliable byte-stream protocol based on UDP (QUIC by browsers, for example), PacketConns should also be closed, if possible.

@wwqgtxx wwqgtxx merged commit 143c84d into MetaCubeX:main Jul 30, 2024
1 check passed
@824187938
Copy link

最新的不能测延迟

@shunf4
Copy link
Author

shunf4 commented Aug 9, 2024

最新的不能测延迟

My own fork (applied my original patch same as af60ef4) has delay test correctly working, so might be other changes causing this issue.

@824187938
Copy link

824187938 commented Aug 10, 2024 via email

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.

3 participants