<p>Kevin Harwell <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/10906">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_registrar: mitigate blocked threads on reliable transport shutdown<br><br>When a reliable transport is shutdown it's possible for the pjsip registrar<br>resource shutdown handler to get called multiple times. If this happens and one<br>of the threads is taking "too long" (slow database call for instance) then the<br>others get blocked waiting to delete.<br><br>Since it only takes one to delete the contact then the other threads should be<br>able to continue on if one of the threads is currently "deleting". This patch<br>makes it so now when a thread enters the shutdown handler it checks to see if a<br>thread is currently already "deleting". If so, then the thread does not attempt<br>to get the lock, and instead continues on thus avoiding the blockage.<br><br>ASTERISK-28213 #close<br><br>Change-Id: I7563ca596312b1dff4f3ab41483e89fe2862328a<br>---<br>M res/res_pjsip_registrar.c<br>1 file changed, 30 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/06/10906/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/10906">change 10906</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/10906"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I7563ca596312b1dff4f3ab41483e89fe2862328a </div>
<div style="display:none"> Gerrit-Change-Number: 10906 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Joshua C. Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>