We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcc2f21 commit 4270a11Copy full SHA for 4270a11
srtcore/api.cpp
@@ -537,6 +537,8 @@ int srt::CUDTUnited::newConnection(const SRTSOCKET listen,
537
538
try
539
{
540
+ // Protect the config of the listener socket from a data race.
541
+ ScopedLock lck(ls->core().m_ConnectionLock);
542
ns = new CUDTSocket(*ls);
543
// No need to check the peer, this is the address from which the request has come.
544
ns->m_PeerAddr = peer;
0 commit comments