[zeromq-dev] Windows and IOCP

Steven McCoy steven.mccoy at miru.hk
Sun May 15 15:33:40 CEST 2011


On 15 May 2011 03:43, Martin Sustrik <sustrik at 250bpm.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110515/a793b6e0/attachment.htm>


More information about the zeromq-dev mailing list