File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
backend-apisix-standalone/src Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ export class BackendAPI7 implements ADCSDK.Backend {
3232 const keepAlive : httpAgentOptions = {
3333 keepAlive : true ,
3434 keepAliveMsecs : 60000 ,
35+ maxSockets : 256 , // per host
3536 } ;
3637 const config : CreateAxiosDefaults = {
3738 baseURL : `${ opts . server } ` ,
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export class BackendAPISIXStandalone implements ADCSDK.Backend {
4444 const keepAlive : httpAgentOptions = {
4545 keepAlive : true ,
4646 keepAliveMsecs : 60000 ,
47+ maxSockets : 10 , // per host
4748 } ;
4849 const config : CreateAxiosDefaults = {
4950 headers : { 'Content-Type' : 'application/json' } ,
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export class BackendAPISIX implements ADCSDK.Backend {
2626 const keepAlive : httpAgentOptions = {
2727 keepAlive : true ,
2828 keepAliveMsecs : 60000 ,
29+ maxSockets : 256 , // per host
2930 } ;
3031 const config : CreateAxiosDefaults = {
3132 baseURL : `${ opts . server } ` ,
You can’t perform that action at this time.
0 commit comments