summaryrefslogtreecommitdiff
path: root/media/sctp/sctpdataengine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'media/sctp/sctpdataengine.cc')
-rw-r--r--media/sctp/sctpdataengine.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/media/sctp/sctpdataengine.cc b/media/sctp/sctpdataengine.cc
index 2f9b117..0d6bc59 100644
--- a/media/sctp/sctpdataengine.cc
+++ b/media/sctp/sctpdataengine.cc
@@ -270,6 +270,13 @@ bool SctpDataMediaChannel::OpenSctpSocket() {
return false;
}
+ uint32_t nodelay = 1;
+ if (usrsctp_setsockopt(sock_, IPPROTO_SCTP, SCTP_NODELAY, &nodelay,
+ sizeof(nodelay))) {
+ LOG_ERRNO(LS_ERROR) << debug_name_ << "Failed to set SCTP_NODELAY.";
+ return false;
+ }
+
// Subscribe to SCTP event notifications.
int event_types[] = {SCTP_ASSOC_CHANGE,
SCTP_PEER_ADDR_CHANGE,