Skip to content

tcpproxy: support half-close with gvisor conns #46

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

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

raggi
Copy link
Collaborator

@raggi raggi commented Jan 21, 2025

gonet.TCPConn implements CloseRead and CloseWrite, but it is not a net.TCPConn. Use an interface to look for CloseRead and CloseWrite so that they are called on gonet.TCPConn.

Updates tailscale/corp#25169

@raggi raggi requested a review from bradfitz January 21, 2025 17:57
gonet.TCPConn implements CloseRead and CloseWrite, but it is not a
net.TCPConn. Use an interface to look for CloseRead and CloseWrite so
that they are called on gonet.TCPConn.

Updates tailscale/corp#25169

Signed-off-by: James Tucker <jftucker@gmail.com>
@raggi raggi force-pushed the raggi/gvisor-half-close branch from 57fc2b5 to 878c2e4 Compare January 21, 2025 17:57
@raggi raggi merged commit 48c7e53 into master Jan 21, 2025
1 check passed
@raggi raggi deleted the raggi/gvisor-half-close branch January 21, 2025 18:32
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