[zeromq-dev] Can I make sure that contexts are freed and handles released in a fast loop?
Kuba
kubaraczkowski at gmail.com
Fri Feb 24 13:02:31 CET 2012
Dear Ian,
Best look at the code:
server: http://pastebin.com/RRwmijZ8
client: http://pastebin.com/LSP4dYfx
The code is essentially the helloworld example from the ZMQ guide, with the
only change being the loop around the client and not inside the client. So
the server binds to the tcp port and waits, the client connects.
Best regards,
Kuba
On Fri, Feb 24, 2012 at 12:32 PM, Ian Barber <ian.barber at gmail.com> wrote:
>
>
> On Fri, Feb 24, 2012 at 11:00 AM, Kuba <kubaraczkowski at gmail.com> wrote:
>
>> Dear Ian,
>>
>> Indeed, adding a pause of ~350ms after the context termination makes the
>> loop stable, however, it is too long to call it "low latency" :)
>>
>> Is there any way to fix it without the delay? Or perhaps for my simple
>> scheme of communication I should consider using windows named pipes?
>>
>> Kuba
>>
>
> The issue is really with the kernel so it's a bit tricky. Are you doing
> the bind() in a fast loop then, is it possible you could connect() in the
> loop, and bind() on the other side?
>
> Ian
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120224/2115be5b/attachment.htm>
More information about the zeromq-dev
mailing list