Change in osmo-ttcn3-hacks[master]: msc: Make TC_lu_and_mo_call_sccp_tiar_timeout() more reliable

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Aug 19 06:59:27 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19715 )


Change subject: msc: Make TC_lu_and_mo_call_sccp_tiar_timeout() more reliable
......................................................................

msc: Make TC_lu_and_mo_call_sccp_tiar_timeout() more reliable

There is a race condition when shutting down, as a DLCX might arrive
while we are half-shutdown.  Expect both DLCX before terminating
the ConnHdlr.

Change-Id: Ia0342a9bb346929e0e538f4cb571abfc4acac6bf
---
M msc/MSC_Tests.ttcn
1 file changed, 4 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/15/19715/1

diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index d668616..a2c3847 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -702,12 +702,15 @@
 				T_wait_iar.stop
 				setverdict(pass);
 		}
-	[] MGCP.receive(tr_DLCX(?)) { repeat; }
 	[] T_wait_iar.timeout {
 		setverdict(fail, "Timeout waiting for T(iar) triggered SCCP RSLD");
 		mtc.stop;
 		}
 	}
+	/* DLCX for both directions; if we don't do this, we might receive either of the two during
+	 * shutdown causing race conditions */
+	MGCP.receive(tr_DLCX(?));
+	MGCP.receive(tr_DLCX(?));
 
 	setverdict(pass);
 }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19715
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ia0342a9bb346929e0e538f4cb571abfc4acac6bf
Gerrit-Change-Number: 19715
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200819/4aabb997/attachment.htm>


More information about the gerrit-log mailing list