From ee57d1cd68b5b8ff44b3a847540b2fda461f9adb Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 22 Feb 2022 15:53:48 +0100 Subject: [PATCH] BSSGP_Emulation: usse alive-type for internal BVC created components Otherwise, during shutdown of all components we may end up in a situation where the BVC is already killed and BSSGP Emulation receives a packet which tries to forward to BVC and fails. This can be seen quite a lot in PCU_Tests.TC_pcuif_suspend: """ PCU_Tests.ttcn:394 setverdict(pass): none -> pass ... PCUIF_Components.ttcn:246 Stopping test component execution. ... GPRS_Components.ttcn:222 Connection of port BSSGP[0] to TC_pcuif_suspend-BVCI1234(6):BSSGP_SP was closed unexpectedly by the peer. ... GPRS_Components.ttcn:222 Port BSSGP[0] was disconnected from TC_pcuif_suspend-BVCI1234(6):BSSGP_SP. ... Component type BSSGP_Emulation.BSSGP_BVC_CT was shut down inside testcase TC_pcuif_suspend ... BSSGP_Emulation.ttcnpp:317 Dynamic test case error: Sending data on the connection of port BVC to 6:BVC failed. (Broken pipe) """ Change-Id: Ib0adcf64eb5ca876cd9e9b91f2b597804c03bdc2 --- library/BSSGP_Emulation.ttcnpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/BSSGP_Emulation.ttcnpp b/library/BSSGP_Emulation.ttcnpp index e0b5deeba..1b628b372 100644 --- a/library/BSSGP_Emulation.ttcnpp +++ b/library/BSSGP_Emulation.ttcnpp @@ -198,7 +198,7 @@ function BssgpStart(BssgpConfig cfg, charstring id) runs on BSSGP_CT { var BssgpBvcConfig bvc_cfg := g_cfg.bvc[i]; var charstring bvc_id := id & "-BVCI" & int2str(bvc_cfg.bvci); /* create, connect and start the BVC component */ - var BSSGP_BVC_CT bvc_ct := BSSGP_BVC_CT.create(bvc_id); + var BSSGP_BVC_CT bvc_ct := BSSGP_BVC_CT.create(bvc_id) alive; connect(bvc_ct:BVC, self:BVC); bvc_ct.start(f_bssgp_bvc_main(bvc_cfg, g_cfg.sgsn_role, g_cfg.nsei, bvc_id)); /* populate the BVC state table */