You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the same DEALER code sending messages to REP/ROUTER, the only difference that sending to REP requires an extra .send() in front of the actual message.
let socket = zmq.socket('dealer');
socket.bindSync('tcp://127.0.0.1:5555');
....
if (isRep) {
socket.send('', zmq.ZMQ_SNDMORE);
}
socket.send(envelope);
Right now if I forget to pass isRep the message is not received, but the process also hangs after CTRL+C and I have to kill it with kill -9.
Anything I can do to catch this error and prevent it? This seems like such an easy mistake to make, I keep forgetting to pass the isRep.
Thanks
The text was updated successfully, but these errors were encountered:
Recently we have released 6.0 beta. It features a new API that addresses some fundamental issues with the previous API and also addresses a number of stability bugs. To make upgrading easier it includes a compatibility layer with versions 4.x/5.x. It would be great if you could give the latest version a spin to see if this solves this particular issue. If you run into any problems with it, feel free to report it here or in a new issue.
I have the same DEALER code sending messages to REP/ROUTER, the only difference that sending to REP requires an extra
.send()
in front of the actual message.Right now if I forget to pass
isRep
the message is not received, but the process also hangs after CTRL+C and I have to kill it withkill -9
.Anything I can do to catch this error and prevent it? This seems like such an easy mistake to make, I keep forgetting to pass the isRep.
Thanks
The text was updated successfully, but these errors were encountered: