aboutsummaryrefslogtreecommitdiffstats
path: root/mgw
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2018-12-13 13:53:33 +0100
committerHarald Welte <laforge@gnumonks.org>2018-12-23 10:14:14 +0000
commita069d38b617be019a94c92cc4af064ba732b5052 (patch)
tree42c07fcdbc20cc91375951019e64b5f7eefb49f0 /mgw
parent9b690e42e110e4697ae1543d87e8a5f313aabefb (diff)
mgw: Tear down all RTP flows to avoid race condition on tear down
When stopping the test TC_two_crcx_and_unsolicited_rtp the unsolicited RTP stream is not stopped. As a result it could happen that between tearing down the other flows and stopping the test an unsolicited RTP packet is sent to a closed socket. The resulting ICMP destination unreachable packet translates to a "Connection refused" error on the sending socket and fails the test. Avoid this by making sure the unsolicited RTP sender is stopped before stopping the test. Change-Id: Ied839596589609e75fa487046a85db48991e4c73
Diffstat (limited to 'mgw')
-rw-r--r--mgw/MGCP_Test.ttcn2
1 files changed, 2 insertions, 0 deletions
diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn
index e1ebc261..9adeb2a6 100644
--- a/mgw/MGCP_Test.ttcn
+++ b/mgw/MGCP_Test.ttcn
@@ -1211,6 +1211,8 @@ module MGCP_Test {
f_sleep(0.5);
+ /* Stop transmitting packets and tear down the flows */
+ f_rtpem_mode(RTPEM[2], RTPEM_MODE_NONE);
f_flow_delete(RTPEM[0]);
f_flow_delete(RTPEM[1], ep, call_id);