indexzero/node-portfinder — pull request #8 by yateya (2014-07-07 16:33:54+00:00)
Title: Pevent recusive call for getPort and getSocket

This example crashes the application:

for(var port = 8000; port < 9000; port++) net.createServer().listen(port);
portFinder.getPort(function(err, port){console.log("Found port " + port);});

because when portFinder.getPort fails to open a port, it call getPort recursively.