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
Pau Espin 2022-02-22 15:53:48 +01:00 committed by pespin
parent 8afdee10b3
commit ee57d1cd68
1 changed files with 1 additions and 1 deletions

View File

@ -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 */