Bug 1443032: stop closing usrsctp on callback. r=jesup
authorNils Ohlmeier [:drno] <drno@ohlmeier.org>
Tue, 20 Mar 2018 11:19:14 +0000
changeset 465112 0faa644eb81c0052a4003c6212de2854dad94d74
parent 465111 fae7d981440374495e890a5ecda4bb698a84f95b
child 465113 1fce5707743a53bd3c86236a7607173ecce26fc2
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup
bugs1443032
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1443032: stop closing usrsctp on callback. r=jesup MozReview-Commit-ID: BgX9I1shVeN
netwerk/sctp/datachannel/DataChannel.cpp
--- a/netwerk/sctp/datachannel/DataChannel.cpp
+++ b/netwerk/sctp/datachannel/DataChannel.cpp
@@ -2307,17 +2307,17 @@ DataChannelConnection::HandleNotificatio
 
 int
 DataChannelConnection::ReceiveCallback(struct socket* sock, void *data, size_t datalen,
                                        struct sctp_rcvinfo rcv, int flags)
 {
   ASSERT_WEBRTC(!NS_IsMainThread());
 
   if (!data) {
-    usrsctp_close(sock); // SCTP has finished shutting down
+    LOG(("ReceiveCallback: SCTP has finished shutting down"));
   } else {
     mLock.AssertCurrentThreadOwns();
     if (flags & MSG_NOTIFICATION) {
       HandleNotification(static_cast<union sctp_notification *>(data), datalen);
     } else {
       HandleMessage(data, datalen, ntohl(rcv.rcv_ppid), rcv.rcv_sid, flags);
     }
   }