[JIRA]: RAMEN9610-21788
[Problem]: Connection termination takes 15 seconds.
It is too long and during that time user may
change settings.
[Issue]: Retransmit count for terminate is same as
for initiate and we need to wait until procedure
completed before send response to framework.
[Solution]: Set retransmit count to 1. If no response
received, close connection locally.
Change-Id: Ib5273fc1228e089e8e99beed057266db78dffafb
Signed-off-by: Denis Vinogradov <denis.vinogradov@samsung.com>
base = peer_cfg->get_retransmit_base(peer_cfg);
max_tries = peer_cfg->get_retransmit_retries(peer_cfg);
}
+ /* reset values if deleting */
+ if (this->ike_sa->is_terminated_from_service(this->ike_sa))
+ {
+ max_tries = 1;
+ }
}
DBG1(DBG_IKE, "Retries: %d, range: %d\n", this->initiating.retransmitted, max_tries);