mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Improve rest_client timeout behavior
This commit is contained in:
parent
52d83387e8
commit
94d2b280df
8
node_modules/c9/rest_client.js
generated
vendored
8
node_modules/c9/rest_client.js
generated
vendored
@ -44,7 +44,11 @@ function RestClient(host, port, config) {
|
||||
port: port,
|
||||
path: path,
|
||||
method: method,
|
||||
headers: headers
|
||||
headers: headers,
|
||||
timeout: config.timeout || 60 * 1000,
|
||||
pool: config.pool || {
|
||||
maxSockets: 100000
|
||||
}
|
||||
};
|
||||
if (config.username)
|
||||
options.auth = config.username + ":" + config.password;
|
||||
@ -141,4 +145,4 @@ function RestClient(host, port, config) {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = RestClient;
|
||||
module.exports = RestClient;
|
||||
Loading…
x
Reference in New Issue
Block a user