Skip to content

Commit 8a5ac0b

Browse files
authored
Merge pull request #11 from randyou/master
增强重试机制
2 parents df66597 + b66ad32 commit 8a5ac0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const upload = async (filePath, parts = []) => {
5858
} catch (error) {
5959
logger.error(error.message);
6060
logger.error(error.stack);
61-
if (['ECONNREFUSED', 'ECONNRESET', 'ENOENT'].includes(error.code)) {
61+
if (['ECONNREFUSED', 'ECONNRESET', 'ENOENT', 'EPROTO'].includes(error.code)) {
6262
// 没有重试过就重试一次
6363
if (!isRetry) {
6464
logger.warn('retry')

0 commit comments

Comments
 (0)