Merge pull request +7500 from c9/better-restores

Better restores
pull/117/merge
Lennart Kats 2015-06-04 10:07:20 +02:00
commit b44f0848dd
2 zmienionych plików z 9 dodań i 0 usunięć

5
node_modules/c9/request_timeout.js wygenerowano vendored
Wyświetl plik

@ -1,3 +1,8 @@
/**
* the default response timeout in node.js is 2min. If a request takes longer
* to process then it needs to be increased
*/
module.exports = function(timeout) {
return function(req, res, next) {
req.setTimeout(timeout);

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

@ -111,6 +111,10 @@ function RestClient(host, port, config) {
done(e);
});
res.on("timeout", function() {
done(new Error("Request timed out"));
});
var called = false;
function done(err, json) {
if (called)