[zeromq-dev] patch: handle idle connections

Martin Sustrik sustrik at fastmq.com
Thu Mar 26 17:06:26 CET 2009


Dhammika Pathirana wrote:
> Yes, this is way better.
> But we'll have inserts/deletes in the middle.
> 
> 1. New connections going directly to active, we can work around this.
>     pipes.push_back (pipe);
>     std::swap (pipes[pipes.end () - 1], pipes[active]);
>     active++;
> 
> 2. Connection shutdown, this'll shift later elements.
>     pipes.erase (it)
> 
> Would this be a problem for short lived connections?

True.

Still, our main use case is the datacenter deployment where connections 
are held open for long timespans, often even in 24/7 manner.

Are you trying to use 0MQ for something like a web server?

Martin



More information about the zeromq-dev mailing list