purge_expired_connections() is thread-safe
updated documentation