-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http listen method is possible to be called twice with no error #4646
Comments
Its not well doced, but you can reopen a server. Try with a different port, it should work, too. |
No problem, as I said, it's something that I wasn't expected and it looked weird. |
Adding documentation that explains that calling |
@nodejs/http |
@nodejs/documentation |
Fixes: nodejs#4646 PR-URL: nodejs#8294 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
I've realised that if I create an http server and I call
listen
on the sameport
andhostname
, several times, no error is reported onerror
event and thelisten
callback is called each time.I've been surprised in finding this behaviour and I'm not sure if this is the expected one after I've tried to found this case in the docs; so I've opened this issue.
The text was updated successfully, but these errors were encountered: