JustinTulloss/zeromq.node

ZMQ_HANDSHAKE_IVL (66)

Closed this issue · 3 comments

Hello,

When trying to set option 66 on a ROUTER socket I recieve "Error: Invalid argument".

This is to support the HANDSHAKE_IVL found in 4.0x+.

Using the raw bindings:
socket._zmq.setsockopt(66, 5000);

results in:

Error: Invalid argument
at Error (native)
at Node._socketCreate (lib/Node.js:797:15)

This is using ZeroMQ 4.1.4 and ZMQ 2.15.3.

I don't think node-zmq supports HANDSHAKE_IVL yet. When we release the big major version, all options that exist will be supported, including this one. I hope you can have patience, or make a PR to fix this for the current major version, which I would happily merge.

Will definitely have patience. Appreciate the response.

Went ahead and just added the options I'm using. Small PR attached.