Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Fixed thread safety using WSAOVERLAPPED in WSASendTo (Update) #2929

Merged
merged 2 commits into from
Apr 17, 2024

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
srtcore/channel.cpp Outdated Show resolved Hide resolved
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>
@maxsharabayko maxsharabayko merged commit fd4084f into Haivision:master Apr 17, 2024
12 checks passed
@maxsharabayko maxsharabayko deleted the hotfix/wsa branch April 17, 2024 12:24
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