Repository navigation
WireGuard proxy: Prevent panic when closing netTun with a write in flight - #6778
Merged
Merged
Conversation
Member
|
I remember dealing with similar issues on the old Wireguard implementation... only the sender should have the right to close the channel |
LjhAUMEM
approved these changes
Sep 18, 2026
LjhAUMEM
left a comment
Contributor
There was a problem hiding this comment.
怎么官方写的也是这样,这下不能愉快的无脑同步了,先这样吧,以后再看看有没有更好的方式,nice fix
Contributor
|
想了一下 RWLock 的方式似乎行不通,先这样吧
再往下就需要深入到 gvisor 的设计里了解了 |
Member
|
@LjhAUMEM 这个 PR 是出入站都占还是 |
Member
|
|
onesyue
pushed a commit
to onesyue/Xray-core
that referenced
this pull request
Sep 21, 2026
…ight (XTLS#6778) XTLS#6778 (review) (cherry picked from commit dbb1ea3)
GFW-knocker
pushed a commit
to GFW-knocker/Xray-core
that referenced
this pull request
Oct 2, 2026
…ight (XTLS#6778) XTLS#6778 (review) (cherry picked from commit dbb1ea3) [GFW-knocker: hand-merged. The fork already had the closed channel, closeOnce and Release-on-close in WriteNotify; this brings Read waiting on closed and Close no longer closing incomingPacket.]
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
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.
No description provided.