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

Support synchronous socket operations on Windows #13414

Merged

Conversation

HertzDevil
Copy link
Contributor

Inspired by #13362, this PR adds handling for AcceptEx, ConnectEx, WSARecv, WSARecvFrom, WSASend, and WSASendTo when they complete synchronously, despite using overlapped I/O. In these cases they will not queue anything to the shared I/O completion port at all.

This scenario probably happens when both connected ends are on the same host machine, but unfortunately, once again this is not enough to get the playground working on Windows.

@straight-shoota straight-shoota added this to the 1.9.0 milestone Apr 29, 2023
@straight-shoota straight-shoota merged commit 6a9b3ec into crystal-lang:master May 2, 2023
@HertzDevil HertzDevil deleted the perf/windows-socket-sync branch May 2, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants