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

Cancel all pending asynchronous socket I/O on Windows upon deinit(). #5

Open
lithdew opened this issue Nov 18, 2020 · 0 comments
Open

Comments

@lithdew
Copy link
Owner

lithdew commented Nov 18, 2020

On Windows, Socket.call() is responsible for driving the asynchronous execution of a socket I/O syscall.

What needs to be done is that prior to the execution of a syscall, an async frame should be queued to an atomic queue of frames stored in a Socket. Upon executing Socket.deinit(), all frames should be forcibly resumed with a flag that would cause error.OperationCancelled to be returned by Socket.call().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant