We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bdd8e5 commit e8a8fb6Copy full SHA for e8a8fb6
coderd/workspaceagents.go
@@ -774,7 +774,11 @@ func (api *API) dialWorkspaceAgentTailnet(agentID uuid.UUID) (*codersdk.Workspac
774
go func() {
775
err := (*api.TailnetCoordinator.Load()).ServeClient(serverConn, uuid.New(), agentID)
776
if err != nil {
777
- api.Logger.Warn(ctx, "tailnet coordinator client error", slog.Error(err))
+ // Sometimes, we get benign closed pipe errors when the server is
778
+ // shutting down.
779
+ if api.ctx.Err() == nil {
780
+ api.Logger.Warn(ctx, "tailnet coordinator client error", slog.Error(err))
781
+ }
782
_ = agentConn.Close()
783
}
784
}()
0 commit comments