From b5aa62cb93a5dfc3b21b4140042fde75eae0d933 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Mon, 5 Oct 2015 10:11:59 +0200 Subject: [PATCH] Added log for timeout --- controllers/prototype/dbrequests.js | 1 + utils/load/load.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/controllers/prototype/dbrequests.js b/controllers/prototype/dbrequests.js index e4f2671..79b526b 100644 --- a/controllers/prototype/dbrequests.js +++ b/controllers/prototype/dbrequests.js @@ -1064,6 +1064,7 @@ DBReq.LastExpGetter.prototype.execute = function() { Log.dberror(err + ' in LastExpGetter (DBReq)'); } if (result.rows.length === 0) { + Log.debug('Timeout', true); setTimeout(function() { self.execute(); }, 1000); diff --git a/utils/load/load.js b/utils/load/load.js index fcb65da..a7086bd 100644 --- a/utils/load/load.js +++ b/utils/load/load.js @@ -1,5 +1,5 @@ -var baseUrl = 'http://localhost:4000/'; -// var baseUrl = 'http://3dinterface.no-ip.org/'; +// var baseUrl = 'http://localhost:4000/'; +var baseUrl = 'http://3dinterface.no-ip.org/'; function makeId() { @@ -19,7 +19,7 @@ var casper = require('casper').create({ waitTimeout: 100000 }); -var limit = 100; +var limit = 1000; casper.start(baseUrl);