diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-04-11 19:55:55 +0200 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2022-04-12 09:44:52 +0000 |
commit | 12c4aa8bb7e754c935059740238b4e358b950e02 (patch) | |
tree | e352262133eb237cae4f457ffb2af35b5e33ae38 | |
parent | 2677b879783bb761952e88f7166363c4ce7e6907 (diff) |
GTPv2_Emulation: Increase reset_all_stats timeout
Release of 256 tuns + threads takes quite a reasonable amount of time.
Let's increase the timeout since reset_all_state can take around 10
seconds sometimes.
Related: OS#5523
Change-Id: Ie01e07bd698cb5c386f757f4ec315f4892ad61cb
-rw-r--r-- | library/GTPv2_Emulation.ttcn | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/GTPv2_Emulation.ttcn b/library/GTPv2_Emulation.ttcn index f07afcb1..5bb3b1ea 100644 --- a/library/GTPv2_Emulation.ttcn +++ b/library/GTPv2_Emulation.ttcn @@ -353,9 +353,9 @@ private template PortEvent tr_SctpPeerAddrChange := { } private function f_uecups_xceive(template (value) PDU_UECUPS tx, - template PDU_UECUPS rx_t := ?) + template PDU_UECUPS rx_t := ?, float time_out := 10.0) runs on GTPv2_Emulation_CT return PDU_UECUPS { - timer T := 10.0; + timer T := time_out; var UECUPS_RecvFrom mrf; UECUPS.send(t_UECUPS_Send(g_uecups_conn_id, tx)); @@ -399,7 +399,7 @@ private function f_init(Gtp2EmulationCfg cfg) runs on GTPv2_Emulation_CT { g_uecups_conn_id := res.connId; /* clear all tunnel state in the daemon at start */ - f_uecups_xceive({reset_all_state := {}}, {reset_all_state_res:=?}); + f_uecups_xceive({reset_all_state := {}}, {reset_all_state_res:=?}, 30.0); } /* make sure we always pass incoming UECUPS indications whenever receiving fom the UECUPS port */ |