Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Avoid crashing if all ports above the start port are unavailable #77
Right now, calling
This isn't passed to the callback - it's thrown directly by node. Because this isn't handled at all that will usually crash the whole node process.
To easily reproduce this, start a server on port 65535 (the maximum port), and then run
This happens because
This PR makes