JustinTulloss/zeromq.node — Issue #68: zmq 2.0.0 bug [works on zmq 1.0.3]
Author: shripadk
Created: 2011-12-06 20:53:07+00:00
State: open

I have a `xrep` server which does the bind. When 1 `xreq` client connects to the server it works fine. Adding one more crashes the process with this stack trace. Only happens in zmq 2.0.0. Works on zmq 1.0.3.

[TypeError: Second argument should be an integer]
[TypeError: Socket is closed]

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot call method 'stop' of null
at Socket.close (/home/shripad/CODE/AN-WORKERS/node_modules/zmq/lib/index.js:310:17)
at Socket. (/home/shripad/CODE/AN-WORKERS/handle-total-monitored-sites.js:12:8)
at Socket.emit (events.js:67:17)
at Socket._flush (/home/shripad/CODE/AN-WORKERS/node_modules/zmq/lib/index.js:296:10)
at Socket.send (/home/shripad/CODE/AN-WORKERS/node_modules/zmq/lib/index.js:245:8)
at /home/shripad/CODE/AN-WORKERS/handle-total-monitored-sites.js:58:24
at Object.callback (/home/shripad/CODE/Mongode/mongodb/lib/mongodb/collection.js:433:9)
at Array.1 (/home/shripad/CODE/Mongode/mongodb/lib/mongodb/connection/server.js:188:36)
at EventEmitter._tickCallback (node.js:192:40)