<p>daniel has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12297">View Change</a></p><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;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/97/12297/1</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: newchange </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: 1 </div>
<div style="display:none"> Gerrit-Owner: daniel <dwillmann@sysmocom.de> </div>