summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-02-13 14:43:00 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-15 12:31:35 +0000
commit7f0b9084805d7d934cf0820d396e12236ddd3cae (patch)
tree6a7728fa79a68dca54906b3201ca3a88fe1b7e32
parent60d4be5427444f8e7ce1bb4f089981fed457dfc1 (diff)
SS7: clarify handling of stream opening error
Add comment clarifying why we've just logged error but continued anyway. Change-Id: I2ce55983b255b0b50fd5142d6ddf188dc8ee20b9
-rw-r--r--src/osmo_ss7.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index 7f82f6e..30677b9 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -1251,6 +1251,8 @@ int osmo_ss7_asp_restart(struct osmo_ss7_asp *asp)
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 */
}
/* TODO: make this configurable and not implicit */
role = XUA_ASPFSM_ROLE_ASP;