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

netplay: more strict checks for error codes from socket operations #4124

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

ManManson
Copy link
Member

There isn't any guarantee that getSockErr()/setSockErr() won't return 0 in all corner cases where something bad happens with an underlying socket.

Provide more strict checks for socket write errors and for checking the result of connection opening routines, allowing to catch error conditions even in presence of error code == 0.

There isn't any guarantee that `getSockErr()`/`setSockErr()`
won't return `0` in all corner cases where something bad happens
with an underlying socket.

Provide more strict checks for socket write errors and for
checking the result of connection opening routines, allowing to
catch error conditions even in presence of error code == 0.

Signed-off-by: Pavel Solodovnikov <[email protected]>
@past-due past-due merged commit ed6c845 into Warzone2100:master Nov 12, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants