Skip to content

Commit 1cb39fc

Browse files
authored
test: ignore more spurious pgcoord errors (#8628)
1 parent 71d4e4e commit 1cb39fc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

enterprise/tailnet/pgcoord.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"github.com/cenkalti/backoff/v4"
1515
"github.com/google/uuid"
1616
"golang.org/x/xerrors"
17+
"nhooyr.io/websocket"
1718

1819
"cdr.dev/slog"
1920

@@ -262,7 +263,11 @@ func (c *connIO) recvLoop() {
262263
var node agpl.Node
263264
err := c.decoder.Decode(&node)
264265
if err != nil {
265-
if xerrors.Is(err, io.EOF) || xerrors.Is(err, io.ErrClosedPipe) || xerrors.Is(err, context.Canceled) {
266+
if xerrors.Is(err, io.EOF) ||
267+
xerrors.Is(err, io.ErrClosedPipe) ||
268+
xerrors.Is(err, context.Canceled) ||
269+
xerrors.Is(err, context.DeadlineExceeded) ||
270+
websocket.CloseStatus(err) > 0 {
266271
c.logger.Debug(c.ctx, "exiting recvLoop", slog.Error(err))
267272
} else {
268273
c.logger.Error(c.ctx, "failed to decode Node update", slog.Error(err))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy