[email protected] said:
> 
> 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.

zmq_sendmmsg(), zmq_recvmmsg(), as based on the Linux calls of a similar
name, and similar calls I forget implemented in the Windows Vista kernel?

http://lwn.net/Articles/441169/ (sendmmsg)
http://lwn.net/Articles/334532/ (recvmmsg)

The only thing is, even if you add those, you can't take away the old calls
since that would break existing code ... so AFAICS we're stuck with it.

-mato
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to