[zeromq-dev] Thread Safe sockets

john skaller skaller at users.sourceforge.net
Mon Feb 6 23:55:31 CET 2012


On 07/02/2012, at 7:37 AM, Nadav Samet wrote:

> I like the concept of having thread-safe sockets, but it seems that this implementation does not really deliver what a user would expect from a thread-safe socket. For instance, if two threads try to receive simultaneously from the same socket, each of them might obtain different frames that belong to one multipart message.

Yes indeed, that is a design fault with multi-part messages being delivered over time
instead of space. My idea to fix this is to provide a way to fetch or deliver them all
in an array.


--
john skaller
skaller at users.sourceforge.net







More information about the zeromq-dev mailing list