derhuerst / node-sockopt

getsockopt & setsockopt for Node.js sockets.
https://github.com/derhuerst/node-sockopt#sockopt
ISC License
8 stars 2 forks source link

dgram sockets have no error parameter in bind callback #5

Open dcharbonnier opened 3 years ago

dcharbonnier commented 3 years ago

https://github.com/derhuerst/node-sockopt/blob/66c06d5306ac1b7fc83da66fd0a3712c2de9ab98/test.js#L13

derhuerst commented 3 years ago

Thanks for bringing this up! Do you know a case where socket.bind() will not throw (it does if it's already bound) but emit an error event as documented?