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

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)

AltStyle によって変換されたページ (->オリジナル) /