Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1cb39fc

Browse files
authored
test: ignore more spurious pgcoord errors (#8628)
1 parent71d4e4e commit1cb39fc

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
varnode agpl.Node
263264
err:=c.decoder.Decode(&node)
264265
iferr!=nil {
265-
ifxerrors.Is(err,io.EOF)||xerrors.Is(err,io.ErrClosedPipe)||xerrors.Is(err,context.Canceled) {
266+
ifxerrors.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)

[8]ページ先頭

©2009-2025 Movatter.jp