Skip to content

Commit

Permalink
backport connection leak fix
Browse files Browse the repository at this point in the history
Fix: add the "m_pRcvQueue->removeConnector(m_SocketID);" command as shown here:

https://sourceforge.net/p/udt/discussion/393037/thread/e15eb3b4/?limit=25#d4f2
  • Loading branch information
sequoiar committed May 18, 2016
1 parent fc55913 commit cc1e1b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deps/uv/src/UDT4/src/udt_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,9 @@ void CUDT::connect(const sockaddr* serv_addr)

if (CTimer::getTime() > ttl)
{
// Stop waiting for this connection
m_pRcvQueue->removeConnector(m_SocketID);

// timeout
e = CUDTException(1, 1, 0);
break;
Expand Down

0 comments on commit cc1e1b8

Please sign in to comment.