Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

zmq set hwm while cause error #581

Open
linajiang opened this issue Dec 10, 2016 · 1 comment
Open

zmq set hwm while cause error #581

linajiang opened this issue Dec 10, 2016 · 1 comment

Comments

@linajiang
Copy link

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
Copy link

galves commented Jan 13, 2017

Use

ZMQ_SNDHWM: 23
ZMQ_RCVHWM: 24

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants