JustinTulloss/zeromq.node

zmq set hwm while cause error

Opened this issue · 1 comments

soucecode: sock.setsockopt(zmq.ZMQ_HWM,1000);

/root/init/node_modules/zmq/lib/index.js:374
this._zmq.setsockopt(opts[opt] || opt, val);
^

Error: Invalid argument
at Error (native)
at Socket.setsockopt (/root/init/node_modules/zmq/lib/index.js:374:13)
at Object. (/root/init/service/zeromqSender.js:18:6)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)

Use

ZMQ_SNDHWM: 23
ZMQ_RCVHWM: 24