Skip to content
Snippets Groups Projects
  • Joshua Colp's avatar
    e924c510
    parking: Use channel snapshot instead of channel. · e924c510
    Joshua Colp authored
    There exists a scenario where a thread can hold a lock on the
    channels container while trying to lock a bridge. At the same
    time another thread can hold the lock for said bridge while
    attempting to retrieve a channel. This causes a deadlock.
    
    This change fixes this scenario by retrieving a channel snapshot
    instead of a channel, as information present in the snapshot
    is all that is needed.
    
    ASTERISK-28616
    
    Change-Id: I68ceb1d62c7378addcd286e21be08a660a7cecf2
    e924c510
    History
    parking: Use channel snapshot instead of channel.
    Joshua Colp authored
    There exists a scenario where a thread can hold a lock on the
    channels container while trying to lock a bridge. At the same
    time another thread can hold the lock for said bridge while
    attempting to retrieve a channel. This causes a deadlock.
    
    This change fixes this scenario by retrieving a channel snapshot
    instead of a channel, as information present in the snapshot
    is all that is needed.
    
    ASTERISK-28616
    
    Change-Id: I68ceb1d62c7378addcd286e21be08a660a7cecf2