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
This commit is contained in:
Pau Espin 2022-04-11 19:55:55 +02:00 committed by pespin
parent 2677b87978
commit 12c4aa8bb7
1 changed files with 3 additions and 3 deletions

View File

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