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

Made WinSock non-blocking #383 #483

Merged
merged 1 commit into from
Oct 29, 2018
Merged

Made WinSock non-blocking #383 #483

merged 1 commit into from
Oct 29, 2018

Conversation

BananaHemic
Copy link
Contributor

Previously we set the minimum recv timeout to 1ms on Windows, but there is an undocumented minimum receive timeout of 500ms, according to some sources online1 a result, some packets were lost for srt, but were still received by wireshark. This commit sets the socket to non-blocking via ioctl, which causes all packets to be correctly received.

Previously we set the minimum recv timeout to 1ms on Windows, but there is an undocumented minimum receive timeout of 500ms, according to some sources online. As a result, some packets were lost for srt, but were still received by wireshark. This commit sets the socket to non-blocking via ioctl
@rndi rndi merged commit 8f9ec9c into Haivision:master Oct 29, 2018
maxsharabayko added a commit to maxsharabayko/srt that referenced this pull request Dec 5, 2018
This fixes the high CPU load issue on Windows with non-blocking sockets (after PR Haivision#483).
Fixed type casting warnings in channel.cpp.
maxsharabayko added a commit to maxsharabayko/srt that referenced this pull request Dec 5, 2018
This fixes the high CPU load issue on Windows with non-blocking sockets (after PR Haivision#483).
Fixed type casting warnings in channel.cpp.
maxsharabayko added a commit to maxsharabayko/srt that referenced this pull request Dec 5, 2018
This fixes the high CPU load issue on Windows with non-blocking sockets (after PR Haivision#483).
Fixed type casting warnings in channel.cpp.
maxsharabayko added a commit to maxsharabayko/srt that referenced this pull request Dec 5, 2018
This fixes the high CPU load issue on Windows with non-blocking sockets (after PR Haivision#483).
Fixed type casting warnings in channel.cpp.
rndi pushed a commit that referenced this pull request Dec 7, 2018
This fixes the high CPU load issue on Windows with non-blocking sockets (after PR #483).
Fixed type casting warnings in channel.cpp.
@maxsharabayko maxsharabayko added the [core] Area: Changes in SRT library core label Dec 4, 2019
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants