diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-05 17:39:22 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-05 17:39:22 +0800 |
commit | 7faf692cb762a81a6ce63b674cc1711e4ea39b21 (patch) | |
tree | f8b1c3e1e71d42f8fb3f140772d805cad407b934 /openbsc/src/bsc_msc_ip.c | |
parent | 0cf25d5154d7c25383257f933d975ad3db91a9ff (diff) |
bsc_msc_ip: Make the ping/pong timeouts configurable
Take the timeouts from the struct.
Diffstat (limited to 'openbsc/src/bsc_msc_ip.c')
-rw-r--r-- | openbsc/src/bsc_msc_ip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c index 2e364ab0b..0bb2d42b8 100644 --- a/openbsc/src/bsc_msc_ip.c +++ b/openbsc/src/bsc_msc_ip.c @@ -906,10 +906,10 @@ static void msc_ping_timeout_cb(void *data) send_ping(); /* send another ping in 20 seconds */ - bsc_schedule_timer(&msc_ping_timeout, 20, 0); + bsc_schedule_timer(&msc_ping_timeout, bsc_gsmnet->ping_timeout, 0); /* also start a pong timer */ - bsc_schedule_timer(&msc_pong_timeout, 5, 0); + bsc_schedule_timer(&msc_pong_timeout, bsc_gsmnet->pong_timeout, 0); } static void msc_connection_connected(struct bsc_msc_connection *con) |