[zeromq-dev] patch: handle idle connections

Dhammika Pathirana dhammika at gmail.com
Fri Mar 27 09:41:53 CET 2009


>
> 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