[zeromq-dev] patch: handle idle connections
Martin Sustrik
sustrik at fastmq.com
Mon Mar 30 09:45:06 CEST 2009
Dhammika,
Great! We'll give it a try on all the different platforms. We'll do some
performance tests as well (1,10,100,1000,10000 idle connections +
ping-pong latency test). However, it won't get into version 0.6 as that
one is already closed for new functionality.
Also, we need you to state that the patch is submitted under MIT license
to be able to merge it into the trunk.
Thanks!
Martin
Dhammika Pathirana wrote:
> Hi,
>
> Updated patch.
> Builds and works on linux, I don't have access to other platforms.
>
> Dhammika
>
>
>
> On Fri, Mar 27, 2009 at 1:41 AM, Dhammika Pathirana <dhammika at gmail.com> wrote:
>>> What about removing connection x like this:
>>>
>>> if (x < active) {
>>> std::swap (pipes [x], pipes [A-1]);
>>> x = A = A - 1;
>>> }
>>> std::swap (pipes [x], pipes [pipes.size () - 1]);
>>> pipes.resize (pipes.size () - 1);
>>>
>>
>> This'll work, but can we guarantee fairness?
>> I'll update the patch and will post it during weekend.
>>
>>
>> Dhammika
>>
More information about the zeromq-dev
mailing list