-
Notifications
You must be signed in to change notification settings - Fork 914
Closed
Labels
Type: BugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior[core]Area: Changes in SRT library coreArea: Changes in SRT library core
Milestone
Description
PR #2834 has a problem, The srt::CChannel::sendto will be call in CSndQueue(thread1) and CRcvQueue(thread2), and that not thread safety.
Them used same WSAOVERLAPPED, so WSASendTo maybe not completed when WSAWaitForMultipleEvents return.
The lpOverlapped parameter must be valid for the duration of the overlapped operation. If multiple I/O operations are simultaneously outstanding, each must reference a separate WSAOVERLAPPED structure.
Originally posted by @mGaosi in #2834 (comment)
Metadata
Metadata
Assignees
Labels
Type: BugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior[core]Area: Changes in SRT library coreArea: Changes in SRT library core