diff --git a/lib/client.js b/lib/client.js index f5b5ebc..275c6db 100644 --- a/lib/client.js +++ b/lib/client.js @@ -111,6 +111,10 @@ client.prototype.request = function(method, path, params, callback){ }); }); + req.setTimeout(30000, function(){ + req.abort(); + }); + // This should only occur for errors such as a socket hang up prior to any // data being received, or SSL-related issues. req.on("error", function(err){