-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
doc net: incorrect error handling documented for listen()Β #5345
Copy link
Copy link
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.netIssues and PRs related to the net subsystem.Issues and PRs related to the net subsystem.
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.netIssues and PRs related to the net subsystem.Issues and PRs related to the net subsystem.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Under the section https://nodejs.org/api/net.html#net_server_address it states that the error is passed to the
listen()callback. This is incorrect. The error is passed to the server's'error'event handler. Like so:Filing this instead of simply fixing this one occurrence b/c unsure if more cases like this exist, and don't have the time to investigate at the moment.