On 15 May 2011 03:43, Martin Sustrik <[email protected]> wrote:

> On 05/15/2011 05:19 AM, Steven McCoy wrote:
>
>  If you're doing it right, it is all zero copy so all the buffers should
>> be in ZeroMQ or the application.
>>
>
> Aha. So there's a callback notifying the application that the data were
> already sent. The application is then responsible for deallocating the
> buffer. Right?
>
> Yup, that's the 'C' in IOCP.


> In such case I would recommend taking care of having at most one send() per
> connection on the fly.
>
> Most IOCP users have found one pending send call and one or more receive
calls to be optimal.


> That way the pending mesages are owned by 0MQ (meaning that HWM is properly
> observed) rather than by IOCP.
>
> Correct, as you also cut SO_SNDBUF to 0 you end up with much better control
of HWM than pre-IOCP.

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

Reply via email to