File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 17
17
},
18
18
"dependencies" : {
19
19
"@aws-sdk/client-s3" : " ^3.279.0" ,
20
+ "@aws-sdk/node-http-handler" : " ^3.279.0" ,
20
21
"adform-upload-tool" : " ^1.0.4" ,
21
22
"axios" : " ^1.3.4" ,
22
23
"chalk" : " ^4.1.2" ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const path = require('path');
8
8
const fs = require ( 'fs' ) ;
9
9
const globPromise = require ( 'glob-promise' ) ;
10
10
const { S3Client, PutObjectCommand } = require ( '@aws-sdk/client-s3' ) ;
11
+ const { NodeHttpHandler } = require ( "@aws-sdk/node-http-handler" ) ;
11
12
const cliProgress = require ( 'cli-progress' ) ;
12
13
13
14
const mime = require ( 'mime-types' ) ;
@@ -65,6 +66,13 @@ const preview = {
65
66
accessKeyId : data . accessKeyId ,
66
67
secretAccessKey : data . secretAccessKey ,
67
68
} ,
69
+ requestHandler : new NodeHttpHandler ( {
70
+ socketTimeout : 3000 ,
71
+ timeoutByRequestType : {
72
+ default : 3000
73
+ } ,
74
+ maxSockets : 200 // Increase from default 50
75
+ } )
68
76
} ) ;
69
77
70
78
const allFiles = await globPromise ( `${ data . inputDir . replace ( / \\ / g, '/' ) } /**/*` ) ;
You can’t perform that action at this time.
0 commit comments