<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/7669">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Richard Mudgett: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Jenkins2: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_rtp_asterisk: Avoid close the rtp/rtcp fd twice.<br><br>When RTCP-MUX enabled. rtp->s is the same as rtcp->s, check this before<br>close the file descriptor. Close the FD twice will hangs the asterisk<br>under heavy load.<br><br>ASTERISK-27299 #close<br>Reported-by: Aaron An<br>Tested-by: AaronAn<br><br>Change-Id: I870a072d73fd207463ac116ef97100addbc0820a<br>---<br>M res/res_rtp_asterisk.c<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c<br>index 230d147..263dbff 100644<br>--- a/res/res_rtp_asterisk.c<br>+++ b/res/res_rtp_asterisk.c<br>@@ -3247,7 +3247,9 @@<br> * entry at this point since it holds a reference to the<br> * RTP instance while it's active.<br> */<br>- close(rtp->rtcp->s);<br>+ if (rtp->rtcp->s > -1 && rtp->s != rtp->rtcp->s) {<br>+ close(rtp->rtcp->s);<br>+ }<br> ast_free(rtp->rtcp->local_addr_str);<br> ast_free(rtp->rtcp);<br> }<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7669">change 7669</a>. To unsubscribe, 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/7669"/><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: merged </div>
<div style="display:none"> Gerrit-Change-Id: I870a072d73fd207463ac116ef97100addbc0820a </div>
<div style="display:none"> Gerrit-Change-Number: 7669 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Aaron An <anjb@ti-net.com.cn> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>