<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/12297">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Harald Welte: Looks good to me, approved
  Stefan Sperling: Looks good to me, but someone else must approve
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mgw: Tear down all RTP flows to avoid race condition on tear down<br><br>When stopping the test TC_two_crcx_and_unsolicited_rtp the unsolicited<br>RTP stream is not stopped. As a result it could happen that between<br>tearing down the other flows and stopping the test an unsolicited RTP<br>packet is sent to a closed socket.<br>The resulting ICMP destination unreachable packet translates to a<br>"Connection refused" error on the sending socket and fails the test.<br><br>Avoid this by making sure the unsolicited RTP sender is stopped before<br>stopping the test.<br><br>Change-Id: Ied839596589609e75fa487046a85db48991e4c73<br>---<br>M mgw/MGCP_Test.ttcn<br>1 file changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn</span><br><span>index e1ebc26..9adeb2a 100644</span><br><span>--- a/mgw/MGCP_Test.ttcn</span><br><span>+++ b/mgw/MGCP_Test.ttcn</span><br><span>@@ -1211,6 +1211,8 @@</span><br><span> </span><br><span>           f_sleep(0.5);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+             /* Stop transmitting packets and tear down the flows */</span><br><span style="color: hsl(120, 100%, 40%);">+               f_rtpem_mode(RTPEM[2], RTPEM_MODE_NONE);</span><br><span>             f_flow_delete(RTPEM[0]);</span><br><span>             f_flow_delete(RTPEM[1], ep, call_id);</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12297">change 12297</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/12297"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ied839596589609e75fa487046a85db48991e4c73 </div>
<div style="display:none"> Gerrit-Change-Number: 12297 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Max <msuraev@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Stefan Sperling <stsp@stsp.name> </div>