Skip to content

Commit b66ad32

Browse files
authored
增强重试机制
1 parent df66597 commit b66ad32

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)