kopia lustrzana https://github.com/c9/core
Improve rest_client timeout behavior
rodzic
52d83387e8
commit
94d2b280df
|
@ -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;
|
Ładowanie…
Reference in New Issue