Browse Source

Removed usrsctp data race mitigation

Paul-Louis Ageneau 4 years ago
parent
commit
34aad791c6
1 changed files with 0 additions and 3 deletions
  1. 0 3
      src/impl/sctptransport.cpp

+ 0 - 3
src/impl/sctptransport.cpp

@@ -416,9 +416,6 @@ void SctpTransport::incoming(message_ptr message) {
 
 
 	PLOG_VERBOSE << "Incoming size=" << message->size();
 	PLOG_VERBOSE << "Incoming size=" << message->size();
 
 
-	// TODO: There seems to be a possible data race between usrsctp_sendv() and usrsctp_conninput()
-	// As a mitigation, lock the send mutex before calling usrsctp_conninput()
-	std::lock_guard lock(mSendMutex);
 	usrsctp_conninput(this, message->data(), message->size(), 0);
 	usrsctp_conninput(this, message->data(), message->size(), 0);
 }
 }