From ee44507cedafc2a5c9a33c2c615d2d6d158c695f Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Tue, 12 May 2015 10:11:14 +0000 Subject: [PATCH] Misc restore fixes to fix large restores failing --- node_modules/c9/rest_client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/node_modules/c9/rest_client.js b/node_modules/c9/rest_client.js index 0ff3db0c..d8910d20 100644 --- a/node_modules/c9/rest_client.js +++ b/node_modules/c9/rest_client.js @@ -50,6 +50,9 @@ function RestClient(host, port, config) { options.auth = config.username + ":" + config.password; var req = proto.request(options, onResponse(done, options, body)); + + /** Keep requests alive for long running requests **/ + req.setSocketKeepAlive(true); req.on("error", function(e) { log("ERROR %s %s://%s:%s%s %s",