Skip to content

portfwdserver: fix half-close #3686

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda added this to the v1.2.0 milestone Jul 4, 2025
@AkihiroSuda AkihiroSuda requested a review from balajiv113 July 4, 2025 06:47
@AkihiroSuda AkihiroSuda force-pushed the fix-3685 branch 2 times, most recently from a3eb1bb to f946103 Compare July 4, 2025 06:54
balajiv113
balajiv113 previously approved these changes Jul 4, 2025
Copy link
Member

@balajiv113 balajiv113 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 Thanks for the updates

@AkihiroSuda
Copy link
Member Author

AkihiroSuda commented Jul 4, 2025

Failures on WSL2 🤔
https://github.com/lima-vm/lima/actions/runs/16067751826/job/45346747240?pr=3686

❌ Forwarding TCP from 127.0.0.2:4031 to 172.29.160.1:4031
   Guest received: ''
❌ Forwarding TCP from 0.0.0.0:4040 to 127.0.0.1:4040
   Guest received: ''
❌ Forwarding TCP from [::]:4041 to 127.0.0.1:4041
   Guest received: ''

Fix issue 3685

Similar to 3684

Signed-off-by: Akihiro Suda <[email protected]>
proxy := tcpproxy.DialProxy{DialContext: func(_ context.Context, _, _ string) (net.Conn, error) {
return conn, nil
}}
proxy.HandleConn(rw)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unlike bicopy.Bicopy(), this ignores errors silently. I don't think this library should be used for anything in the current state.

@AkihiroSuda AkihiroSuda marked this pull request as draft July 4, 2025 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[gRPC portfwd] client connection is not closed immediately when server closed the connection
3 participants