Skip to content

chore: Refactor common server cli components for reusability #7103

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

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Close idle connections of the new http client
  • Loading branch information
Emyrk committed Apr 13, 2023
commit 7f8acbdb969f0a195e23ec3258e5b11e01493164
1 change: 1 addition & 0 deletions cli/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,7 @@ func SetupServerCmd(inv *clibase.Invocation, cfg *codersdk.DeploymentValues) (_
}
c.Ctx = ctx
c.HTTPClient = httpClient
c.addClose(c.HTTPClient.CloseIdleConnections)

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