aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2019-02-07 11:06:15 +0100
committerMax <msuraev@sysmocom.de>2019-02-07 11:06:15 +0100
commit0a93a683f3cb8e5977eb4a666ab207db6e7d7af9 (patch)
treec017aa91a4b38f7b74e962a8413dbd80110bf2a0
parent81c6a0a97980f9da76ef0e698ca6ab526b98c7c2 (diff)
Don't use deprecated osmo_stream_cli_open2()
Using osmo_stream_cli_open() with explicit timeout set via osmo_stream_cli_set_reconnect_timeout() will have the same effect. Update comment explaining this as well as the code. Change-Id: Iffe6ea48a170880faef071c7c4a1bc0605aa9855
-rw-r--r--src/osmo_ss7.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index 39d92fa..05668b0 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -1261,12 +1261,13 @@ int osmo_ss7_asp_restart(struct osmo_ss7_asp *asp)
else
osmo_stream_cli_set_read_cb(asp->client, xua_cli_read_cb);
osmo_stream_cli_set_data(asp->client, asp);
- rc = osmo_stream_cli_open2(asp->client, 1);
+ rc = osmo_stream_cli_open(asp->client);
if (rc < 0) {
LOGSS7(asp->inst, LOGL_ERROR, "Unable to open stream"
" client for ASP %s\n", asp->cfg.name);
- /* we don't return error in here because osmo_stream_cli_open2()
- will continue to retry to connect so the error is transient */
+ /* we don't return error in here because osmo_stream_cli_open()
+ will continue to retry (due to timeout being explicitly set with
+ osmo_stream_cli_set_reconnect_timeout() above) to connect so the error is transient */
}
/* TODO: make this configurable and not implicit */
role = XUA_ASPFSM_ROLE_ASP;