diff --git a/lib/Parse.js b/lib/Parse.js index f6dea3d..d72bf64 100644 --- a/lib/Parse.js +++ b/lib/Parse.js @@ -445,6 +445,10 @@ function parseRequest(method, path, data, callback, contentType, sessionToken) { callback(err); }); }); + + req.setTimeout(5000, function () { + req.connection.destroy(); + }); body && req.write(body, contentType ? 'binary' : 'utf8'); req.end();