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

[WS] Fix set_no_delay on Windows #95233

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented Aug 7, 2024

Windows socket implementation is, as usual, broken in many ways.

This includes setsockopt failing to set TCP_NODELAY if the socket is still in a connecting state.

This also means we need to keep polling the IP resolver until the socket reaches the CONNECTED state (so it can set the TCP_NODELAY after the connection is successful).

Fixes #95217
Regression from #94618

Windows socket implementation is, as usual, broken in many ways.

This includes `setsockopt` failing to set `TCP_NODELAY` if the socket is
still in a connecting state.

This also means we need to keep polling the IP resolver until the socket
reaches the CONNECTED state (so it can set the TCP_NODELAY after the
connection is successful).
@Faless Faless requested a review from a team as a code owner August 7, 2024 07:48
@akien-mga akien-mga added this to the 4.3 milestone Aug 7, 2024
@akien-mga akien-mga changed the title [WS] Fix set_no_delay on Windows [WS] Fix set_no_delay on Windows Aug 7, 2024
@akien-mga akien-mga merged commit 17f3d35 into godotengine:master Aug 7, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@Faless Faless deleted the ws/fix_set_no_delay_win branch August 7, 2024 10:40
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.

[WebSocket] "Unable to set TCP no delay option" error on Windows
3 participants