Skip to content

Conversation

norio-nomura
Copy link
Contributor

HostSocket will be deleted on close.

Separated from #4008

HostSocket will be deleted on close.

Signed-off-by: Norio Nomura <[email protected]>
@AkihiroSuda AkihiroSuda added this to the v2.0.0 milestone Sep 18, 2025
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks

@AkihiroSuda AkihiroSuda merged commit 6c5ee21 into lima-vm:master Sep 18, 2025
62 of 63 checks passed
@norio-nomura norio-nomura deleted the close-grpc-forwarder branch September 18, 2025 03:02
@norio-nomura
Copy link
Contributor Author

Thanks! 🙏🏻

@@ -90,6 +105,9 @@ func (p *ClosableListeners) forwardTCP(ctx context.Context, client *guestagentcl
for {
conn, err := tcpLis.Accept()
if err != nil {
if opErr, ok := err.(*net.OpError); ok && opErr.Err.Error() == "use of closed network connection" {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should be changed to use if errors.Is(err, net.ErrClosed) {
opened #4048

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