Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AMF
Commits
4f5a368e
Commit
4f5a368e
authored
Mar 18, 2022
by
yangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Bug: Disconnecting the gNB leads to an endless loop
parent
474fed58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/sctp/sctp_server.cpp
src/sctp/sctp_server.cpp
+2
-1
No files found.
src/sctp/sctp_server.cpp
View file @
4f5a368e
...
...
@@ -158,7 +158,7 @@ int sctp_server::sctp_read_from_socket(int sd, uint32_t ppid) {
int
n
=
sctp_recvmsg
(
sd
,
(
void
*
)
buffer
,
SCTP_RECV_BUFFER_SIZE
,
(
struct
sockaddr
*
)
&
addr
,
&
from_len
,
&
sinfo
,
&
flags
);
if
(
n
<
0
)
{
if
(
n
<
=
0
)
{
Logger
::
sctp
().
error
(
"sctp_recvmsg error:: %s:%d"
,
strerror
(
errno
),
errno
);
return
SCTP_RC_ERROR
;
}
...
...
@@ -211,6 +211,7 @@ int sctp_server::sctp_read_from_socket(int sd, uint32_t ppid) {
int
sctp_server
::
sctp_handle_com_down
(
sctp_assoc_id_t
assoc_id
)
{
Logger
::
sctp
().
info
(
"SCTP_SHUTDOWN_COMP assoc_id (%d) "
,
assoc_id
);
app_
->
handle_sctp_del_association
(
assoc_id
);
return
SCTP_RC_DISCONNECT
;
}
//------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment