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
that's because ZMQ.pm's ->socket() returns a ZMQ::Socket, but the underlying ZMQ::LibZMQ[23]::zmq_device is expecting a ZMQ::LibZMQ[23]::Socket.
Now having said that it's true that in the current code I don't see a way around it. I don't know which is best: Add a ZMQ::device() (but I believe zmq_device() has rumors about being deprecated...), or just provider ZMQ::Socket::raw_socket() or something so you can do
right, zmq_device is deprecated: https://github.com/zeromq/libzmq/blob/master/NEWS#L240
zmq_proxy() is to be used instead.
Whatever you find is the easier or best solution to this. ZMQ::Socket::raw_socket() which returns a ZMQ::LibZMQ2::Socket is maybe a good idea.
But there is also the option to provide ZMQ::proxy() directly.
Both are calls to the underlying libzmq[23].
I would love to see this in ZMQ, because right now I rewrote to ZMQ::LibZMQ* because of this.
OUTPUT:
ZMQ::LibZMQ2::Socket: Invalid ZMQ::LibZMQ2::Socket object was passed to mg_find at queue.pl line 20.
The text was updated successfully, but these errors were encountered: