Skip to content

Commit

Permalink
netutil: fix a buglet
Browse files Browse the repository at this point in the history
I was noticing an excess number of conn objects remaining open after a
test shutdown.

Release note: None
  • Loading branch information
knz committed Jul 27, 2023
1 parent 310951b commit 973d861
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/util/netutil/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ func (s *TCPServer) ServeWith(
serveConn(ctx, rw)
})
if err != nil {
err = errors.CombineErrors(err, rw.Close())
return err
}
}
Expand Down

0 comments on commit 973d861

Please sign in to comment.