[zeromq-dev] [jzmq] xreq/xrep sockets and thread safety

Alexey Ermakov zee at technocore.ru
Tue Aug 17 11:55:16 CEST 2010


On Sat, Aug 14, 2010 at 1:50 AM, Martin Sustrik <sustrik at moloch.sk> wrote:
> That can't be done as errors occur asynchronously.
>
> However, the framing errors shouldn't crash the system.
>
> The right solution IMO is to have an internal inproc "error" publisher node
> that you can subscribe to to get error:
>
> s = socket (ZMQ_SUB);
> s.connect ("inproc://error");
> err = s.recv ();

Sounds like a nice solution. The socket that caused the error still
would need to be marked as failed, though, otherwise it'd be hard to
use (no way to correlate and synchronize errors received from this
node with the socket objects and operations performed).



More information about the zeromq-dev mailing list