Skip to content

Commit f5a0647

Browse files
committed
ECONNRESET retyr
1 parent b013234 commit f5a0647

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cos-nodejs-sdk-v5",
3-
"version": "2.9.19",
3+
"version": "2.9.20",
44
"description": "cos nodejs sdk v5",
55
"main": "index.js",
66
"types": "index.d.ts",

sdk/base.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3450,6 +3450,8 @@ function allowRetry(err) {
34503450
}
34513451
} else if (Math.floor(err.statusCode / 100) === 5) {
34523452
allowRetry = true;
3453+
} else if (err.code === 'ECONNRESET') {
3454+
allowRetry = true;
34533455
}
34543456
}
34553457
return allowRetry;

0 commit comments

Comments
 (0)