You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue with the auto-port functionality which causes the callback handler for http.listen to be called N times, where N is the attempts at auto-porting.
The core issue is that either Node itself or Express won't pass EADDRINUSE errors through the normal error object in listen callback. The only way to catch this error is to listen for server.on("error").
Work around requires minor refactor of auto-port logic.
The text was updated successfully, but these errors were encountered:
There is an issue with the auto-port functionality which causes the callback handler for
http.listen
to be called N times, where N is the attempts at auto-porting.The core issue is that either Node itself or Express won't pass
EADDRINUSE
errors through the normal error object inlisten
callback. The only way to catch this error is to listen forserver.on("error")
.Work around requires minor refactor of auto-port logic.
The text was updated successfully, but these errors were encountered: