Skip to content

Commit

Permalink
fix(agw): Fixed SCTP abort issue by setting finite timeout in sctp_se…
Browse files Browse the repository at this point in the history
…ndmsg (#13146)

* fix(agw): SCTP Abort on new connections from ENB. MME stops processing resolved.  #13115

Signed-off-by: bhuvaneshne <bhuvaneshne@highway9networks.com>
  • Loading branch information
bhuvaneshne committed Aug 17, 2022
1 parent e0d12a3 commit 6506c85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lte/gateway/c/sctpd/src/sctp_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ void SctpConnection::Send(uint32_t assoc_id, uint32_t stream,

auto buf = msg.c_str();
auto n = msg.size();
// 100 indicates a timetolive of 100 ms
auto rc = sctp_sendmsg(assoc.sd, buf, n, NULL, 0, htonl(assoc.ppid), 0,
stream, 0, 0);
stream, 100, 0);

if (rc < 0) {
MLOG_perror("sctp_sendmsg");
Expand Down

0 comments on commit 6506c85

Please sign in to comment.