Skip to content

Commit 7f8acbd

Browse files
committed
Close idle connections of the new http client
1 parent f12bc59 commit 7f8acbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,7 @@ func SetupServerCmd(inv *clibase.Invocation, cfg *codersdk.DeploymentValues) (_
12151215
}
12161216
c.Ctx = ctx
12171217
c.HTTPClient = httpClient
1218+
c.addClose(c.HTTPClient.CloseIdleConnections)
12181219

12191220
// Warn the user if the access URL appears to be a loopback address.
12201221
isLocal, err := isLocalURL(ctx, cfg.AccessURL.Value())

0 commit comments

Comments
 (0)