JustinTulloss / zeromq.node

Node.js bindings to the zeromq library
MIT License
1.65k stars 286 forks source link

[question] will setting ZMQ_SNDTIMEO to 0 cause throws? #572

Open Fishrock123 opened 7 years ago

Fishrock123 commented 7 years ago

I know on ZMQ's end it will throw, but I'm not sure how errors get propagated here / what to check for.

What I'm looking to do is sock.setsockopt(zmq. ZMQ_SNDTIMEO, 0) so that send()s will never block.

In this case will the JS send() API throw an EACCESS? Are there better ways to do this?

Fishrock123 commented 7 years ago

cc @ronkorving

ronkorving commented 7 years ago

I have honestly no idea. Try and find out?