mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: routinely ping agent websocket to ensure liveness (#5824)
This commit is contained in:
@@ -83,6 +83,7 @@ func workspaceAgent() *cobra.Command {
|
||||
slog.F("version", version),
|
||||
)
|
||||
client := codersdk.New(coderURL)
|
||||
client.Logger = logger
|
||||
// Set a reasonable timeout so requests can't hang forever!
|
||||
client.HTTPClient.Timeout = 10 * time.Second
|
||||
|
||||
|
||||
Reference in New Issue
Block a user