Skip to content

Commit 58414c5

Browse files
committed
fix: check for io.EOF error in derpmap to resolve flake
See: https://github.com/coder/coder/actions/runs/10218717887/job/28275465405?pr=14045
1 parent 4d4d27c commit 58414c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codersdk/workspacesdk/connector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ func (tac *tailnetAPIConnector) derpMap(client proto.DRPCTailnetClient) error {
264264
for {
265265
dmp, err := s.Recv()
266266
if err != nil {
267-
if xerrors.Is(err, context.Canceled) || xerrors.Is(err, context.DeadlineExceeded) {
267+
if xerrors.Is(err, context.Canceled) || xerrors.Is(err, context.DeadlineExceeded) || xerrors.Is(err, io.EOF) {
268268
return nil
269269
}
270270
tac.logger.Error(tac.ctx, "error receiving DERP Map", slog.Error(err))

0 commit comments

Comments
 (0)