(phone_number, backend, max_simultaneous_connections)
return get_redis_lock(key, timeout=60, name="connection_slot")
There is one redis lock per connection slot, numbered from 0 to
    max_simultaneous_connections - 1.
    A slot is taken if the lock can't be acquired.
There is one redis lock per connection slot, numbered from 0 to
    max_simultaneous_connections - 1.
    A slot is taken if the lock can't be acquired.
There is one redis lock per connection slot numbered from 0 to max_simultaneous_connections - 1 . A slot is taken if the lock can t be acquired .
def get_connection_slot_lock(phone_number, backend, max_simultaneous_connections):
    """
    There is one redis lock per connection slot, numbered from 0 to
    max_simultaneous_connections - 1.
    A slot is taken if the lock can't be acquired.
    """
    slot = get_connection_slot_from_phone_number(phone_number, max_simultaneous_connections)
    key = 'backend-%s-connection-slot-%s' % (backend.couch_id, slot)
    return get_redis_lock(key, timeout=60, name="connection_slot")
def get_connection_slot_lock ( phone_number , backend , max_simultaneous_connections ) : slot = get_connection_slot_from_phone_number ( phone_number , max_simultaneous_connections ) key = 'backend-%s-connection-slot-%s' % ( backend . couch_id , slot ) return get_redis_lock ( key , timeout = 60 , name = "connection_slot" )