Skip to content

Commit

Permalink
fixing connection leak
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-fraser committed Feb 8, 2025
1 parent 755c415 commit 71f89e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cloudhypervisor/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func New(socketPath string) Client {
DialContext: func(_ context.Context, _, _ string) (net.Conn, error) {
return net.Dial("unix", socketPath)
},
DisableKeepAlives: true, // Disable keep-alive to ensure connections are closed after use
}

return &client{
Expand Down

0 comments on commit 71f89e3

Please sign in to comment.