You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to limitations of the synchronous API of NamedPipes, the server will wait forever when waiting on a client connection. We should move to overlapped I/O, so the server can support timeouts, though it will likely bit a bit painful to change this.
The text was updated successfully, but these errors were encountered:
_winapi looks like it has decent support for using overlapped IO (and does some extra stuff to help out that I think would make it simpler than that example code).
The typeshed stubs don't seem to include that support, though, so those should get updated too.
This PR does a few things:
- Changes reads/writes/connects to use overlapped I/O on Windows
- Removes the need for special casing b'' as an EOF signal
- Adds support for timing out on connects for the server process (which means dmypy's --timeout flag works on Windows).
- Make the default timeout infinite (though this doesn't change anything functionally since we always specify alternatives in our usage)
Fixes#5962
Due to limitations of the synchronous API of NamedPipes, the server will wait forever when waiting on a client connection. We should move to overlapped I/O, so the server can support timeouts, though it will likely bit a bit painful to change this.
The text was updated successfully, but these errors were encountered: