diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2014-06-04 18:30:59 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-06-15 19:28:51 +0200 |
commit | 6d8884de490d09902e9e31a90bab9ef490ef5d82 (patch) | |
tree | f4da5e3693ac6d0887afde8bfd329e1a83bfeea2 /src/sysmo_sock.cpp | |
parent | 77e58f602d52a1baaf0e11ee280d04126900c5f4 (diff) |
Always exit and don't try to recover
The current code tries to recover from dropped connections and resets the
pcu state so it can keep running. However, this never worked correctly
which is why the -e option is used. This option exits the pcu as soon as
the internal state needs to be reset.
This patch removes this option and makes this behaviour default.
Ticket: SYS#390
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/sysmo_sock.cpp')
-rw-r--r-- | src/sysmo_sock.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/sysmo_sock.cpp b/src/sysmo_sock.cpp index 2e2d9d39..951653e2 100644 --- a/src/sysmo_sock.cpp +++ b/src/sysmo_sock.cpp @@ -112,12 +112,8 @@ static void pcu_sock_close(struct pcu_sock_state *state, int lost) gprs_rlcmac_tbf::free_all(&bts->trx[trx]); } - gprs_bssgp_destroy_or_exit(); - - if (lost) { - state->timer.cb = pcu_sock_timeout; - osmo_timer_schedule(&state->timer, 5, 0); - } + gprs_bssgp_destroy(); + exit(0); } static int pcu_sock_read(struct osmo_fd *bfd) |