Fix handling of sctp SCTP_SHUTDOWN_EVENT notification
SCTP_SHUTDOWN_EVENT is a first class event, and not a subtype of SCTP_ASSOC_CHANGE (such as SCTP_SHUTDOWN_COMP). Related: SYS#6113 Change-Id: I7fa648142c07f63c55091d2a15b9d7312bcd4cec
This commit is contained in:
parent
12bc4afab3
commit
1906a30ca9
|
@ -262,6 +262,8 @@ static int hnb_read_cb(struct osmo_stream_srv *conn)
|
||||||
LOGHNB(hnb, DMAIN, LOGL_NOTICE, "HNB SCTP conn RESTARTed, marking as HNBAP-unregistered\n");
|
LOGHNB(hnb, DMAIN, LOGL_NOTICE, "HNB SCTP conn RESTARTed, marking as HNBAP-unregistered\n");
|
||||||
hnb->hnb_registered = false;
|
hnb->hnb_registered = false;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case SCTP_SHUTDOWN_EVENT:
|
case SCTP_SHUTDOWN_EVENT:
|
||||||
LOGHNB(hnb, DMAIN, LOGL_NOTICE,
|
LOGHNB(hnb, DMAIN, LOGL_NOTICE,
|
||||||
"sctp_recvmsg(%s) = SCTP_SHUTDOWN_EVENT, closing conn\n",
|
"sctp_recvmsg(%s) = SCTP_SHUTDOWN_EVENT, closing conn\n",
|
||||||
|
@ -270,8 +272,6 @@ static int hnb_read_cb(struct osmo_stream_srv *conn)
|
||||||
rc = -1;
|
rc = -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
|
||||||
goto out;
|
goto out;
|
||||||
} else if (rc == -EAGAIN) {
|
} else if (rc == -EAGAIN) {
|
||||||
/* Older versions of osmo_stream_srv_recv() not supporting
|
/* Older versions of osmo_stream_srv_recv() not supporting
|
||||||
|
|
Loading…
Reference in New Issue