Skip to content
Browse files

fix timeout placement

  • Loading branch information...
1 parent 899834f commit d3925c486263b1500752d7a6f8a4f3f2454e6ef1 @zzo committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 backend/nodejute/submit_test.js
View
6 backend/nodejute/submit_test.js
@@ -190,6 +190,9 @@ eventHub.on('tests', function(tests) {
// POST AWAY!
var req = http.request(options, function(res) {
+ // 6000 seconds = 100 minutes
+ req.socket.setTimeout(6000000, function(e) { console.log('socket timeout!'); });
+
if (res.statusCode != 200) {
console.log('JUTE Displeased');
}
@@ -202,9 +205,6 @@ eventHub.on('tests', function(tests) {
});
});
- // 6000 seconds = 100 minutes
- req.socket.setTimeout(6000000, function(e) { console.log('socket timeout!'); });
-
// Not Good
req.on('error', function(e) {
console.error('Problem contacting JUTE server at: ' + args.host + ':' + args.port);

0 comments on commit d3925c4

Please sign in to comment.
Something went wrong with that request. Please try again.