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

Commit89e9f95

Browse files
committed
handle deadline exceeded in drain
1 parent7c198a6 commit89e9f95

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎scaletest/trafficgen/run.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ func drainContext(ctx context.Context, src io.Reader, bufSize int64) error {
170170
ifxerrors.Is(err,io.EOF) {
171171
returnnil
172172
}
173+
// It's OK if the context is canceled.
174+
ifxerrors.Is(err,context.DeadlineExceeded) {
175+
returnnil
176+
}
173177
returnerr
174178
}
175179
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp