Skip to content

Conversation

maxsharabayko
Copy link
Collaborator

@maxsharabayko maxsharabayko commented Apr 16, 2024

❗ This is an update of PR #2861 by @mGaosi split into two commits: revert of PR #2834, and the re-fix of the data race.

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.

This reverts PR #2834.
Related items: #973, #2632, #2834, #2838, #2861.

Closes #2861.

Overlapped send with 100 ms timeout on Windows added a data race.
@maxsharabayko maxsharabayko added Type: Bug Indicates an unexpected problem or unintended behavior [core] Area: Changes in SRT library core labels Apr 16, 2024
@maxsharabayko maxsharabayko added this to the v1.5.4 milestone Apr 16, 2024
@maxsharabayko maxsharabayko changed the title Hotfix/wsa [core] Fixed thread safety using WSAOVERLAPPED in WSASendTo (Update) Apr 16, 2024
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.
Resolves Haivision#973, Haivision#2632, Haivision#2834, Haivision#2838.

Co-authored-by: Jiangjie Gao <gaojiangjie@live.com>
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: Bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant