STRML/node-toobusy

How to test in development phase?

Opened this issue · 2 comments

I tried executing this mock route

//TEST if this works
//Create this route and execute it.
router.get('/mock', function(req,res){
  // processing the request requires some work! 
  var i = 0;
  while (i < 1e5) i++;
  res.send("I counted to " + i);
});

but documented setup, but i never get toobusy() to be true. I tried opening in multiple tables and requesting same or different routes. The process ID simply breaks.

How to confirm if this works in development?

STRML commented

1e5 is too little. Try a much larger number.

Tried with 1e50, still doesn’t work.

I tried opening multiple tabs and then also the toobusy() doesn’t throws true value.

At last, I closed forcefully and that froze my node process. I had to kill the process on the port manually.

Any suggestions?