mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-06 05:00:07 +01:00
Prevent connection starvation
When removing a pipe from the lb or fq component, make sure we do not remove another pipe from the active set.
This commit is contained in:
@@ -58,6 +58,7 @@ void zmq::lb_t::terminated (pipe_t *pipe_)
|
||||
// accordingly.
|
||||
if (index < active) {
|
||||
active--;
|
||||
pipes.swap (index, active);
|
||||
if (current == active)
|
||||
current = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user