JustinTulloss / zeromq.node

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

zmq set hwm while cause error #581

Open linajiang opened 7 years ago

linajiang commented 7 years ago

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)

galves commented 7 years ago

Use

ZMQ_SNDHWM: 23 ZMQ_RCVHWM: 24