diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-01-08 15:18:39 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-01-18 18:37:36 +0100 |
commit | 743dec4c0c80383556efac60f03d307287ecf024 (patch) | |
tree | 204c24f1dc965cdc1dd780b9363ffa2eb27a2534 /openbsc/include/openbsc/gprs_sgsn.h | |
parent | 65fa3f73a1151e896e4c74196680b7886a3b6be6 (diff) |
gprs: Retry PURGE_MS procedure after timeout
Currently, when the PURGE_MS_REQ to the HLR gets lost (e.g. by a
connection or peer failure), the expired subscriber entry will not get
deleted.
This commit adds a retry mechanism then restarts the procedure after
a timeout (currently 10s). The maximum number of retries is limited
(currently to 3 PURGE_MS messages). If none of these procedures is
completed (either with success or error), the subscriber data is
deleted.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc/gprs_sgsn.h')
-rw-r--r-- | openbsc/include/openbsc/gprs_sgsn.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gprs_sgsn.h b/openbsc/include/openbsc/gprs_sgsn.h index 2ed46ffbe..2b94096f6 100644 --- a/openbsc/include/openbsc/gprs_sgsn.h +++ b/openbsc/include/openbsc/gprs_sgsn.h @@ -277,6 +277,7 @@ struct sgsn_subscriber_data { int auth_triplets_updated; int error_cause; struct osmo_timer_list timer; + int retries; }; #define LOGGSUBSCRP(level, subscr, fmt, args...) \ |