Added a Least Recently Used purging schema #32

Merged
merged 2 commits into from Jan 27, 2013

3 participants

@silentjohnny

When calling s_broker_purge, always the first worker is checked for expiration. If that one never times out or disconnects, no workers will be purged.
To make sure newer workers can timeout too, we need to move fresh workers to the end of the broker's waiting list. Only if there is more than one worker of course.

@hurtonm
The ZeroMQ project member

Thanks for this. Could you replace tabs with spaces? Thanks!

@silentjohnny

Aye-aye captain!

@hintjens hintjens merged commit 6c5a332 into zeromq:master Jan 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment