-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
The Node.js socket errors don't get caught at the moment and there is no way to do so. Node.js will exit the process when a EventEmitter (such as node:net.Socket) emits an event called "error".
Current behaviour
When the code receives a Connection refused, it will exit the process.
Expected behaviour
It throws an error.
Proposal
Add a hook for the "error" socket event and on an error rethrow the error to the caller of lookup().
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working