Skip to content

Conversation

ethouris
Copy link
Collaborator

@ethouris ethouris commented May 7, 2025

Changes:

  1. Fixed removal of all groups in the procedure of total removal (called from CUDTUnited::cleanup). That was reported as a leak.
  2. Fixed access of m_QueuedSockets without m_AcceptLock.
  3. Fixed usage of CUDT::m_stats.tsStartTime without m_StatsLock.
  4. Getting option by asking the first socket: untangled the lock order of m_GroupLock and m_GlobControlLock; changed the order by attempting to extract the socket by ID after taking it from the group member container.
  5. test: change variable to atomic to avoid data race.

@ethouris ethouris added this to the v1.5.5 milestone May 7, 2025
@ethouris ethouris added Type: Maintenance Work required to maintain or clean up the code [core] Area: Changes in SRT library core labels May 7, 2025
leaveCS(m_GroupLock);
if (sk.socket)
// CUDTUnited::m_GlobControlLock can't be acquired with m_GroupLock either.
// We have also no guarantee that after leacing m_GroupLock the socket isn't
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leacing => leaving?

@cl-ment cl-ment merged commit 21370a7 into Haivision:master May 21, 2025
6 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[core] Area: Changes in SRT library core Type: Maintenance Work required to maintain or clean up the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants