|
|
|
@ -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){ |
|
|
|
|