Improve rest_client timeout behavior

pull/282/head
Lennart Kats 2016-03-23 10:27:53 +00:00
rodzic 52d83387e8
commit 94d2b280df
1 zmienionych plików z 6 dodań i 2 usunięć

8
node_modules/c9/rest_client.js wygenerowano vendored
Wyświetl plik

@ -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;