Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v1.8] fix(agw): Fixed SCTP abort issue by setting finite timeout in sctp_sendmsg (#13146) #13644

Merged
merged 1 commit into from
Aug 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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