summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-06-13 17:12:12 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-06-13 17:12:12 +0200
commit298fa9172685fbee5f9a7a7bf0615853b17a5ea1 (patch)
treee649bed4ddb6f6c3955a814c5410de229998a775
parent5f89adf4629935a566f6f6d3925355920545b2ef (diff)
bscnat: Fix race condition in TC_ctrl_location
-rw-r--r--bsc-nat/BSC_MS_Simulation.ttcn5
1 files changed, 5 insertions, 0 deletions
diff --git a/bsc-nat/BSC_MS_Simulation.ttcn b/bsc-nat/BSC_MS_Simulation.ttcn
index 453f304..0582576 100644
--- a/bsc-nat/BSC_MS_Simulation.ttcn
+++ b/bsc-nat/BSC_MS_Simulation.ttcn
@@ -10,6 +10,7 @@ module BSC_MS_Simulation {
* SPDX-License-Identifier: GPL-2.0-or-later
*/
+import from Osmocom_Types all;
import from IPL4asp_Types all;
import from IPA_Emulation all;
@@ -83,6 +84,10 @@ runs on BSC_CT {
f_ctrl_trap(SCCPLITE_IPA_CTRL, "bts.0.location-state",
"1234567,fix3d,0.340000,0.560000,0.780000,operational,unlocked,on,001,01");
f_ctrl_exp_set(SCCPLITE_IPA_CTRL, "rf_locked", "1", "1");
+ /* Leave some time for SET_REPLY to reach the other side before closing
+ conn towards BSC-NAT, otherwise TCP FIN is sent before SET_REPLY and
+ bsc-nat sends a CTRL ERR to whoever sent the SET cmd. */
+ f_sleep(1.0);
}
function main(charstring remote_ip, PortNumber remote_port,