-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Better validate serve_listeners handling of weird edge cases #492
Comments
On further investigation, this is not actually a real issue, because Windows doesn't actually have any way to limit the number of socket handles you allocate; if you do a Paste of some discussion on
It would still be good to:
|
Looking at twisted/twisted#996 led me to investigate more the difference between
EMFILE
andWSAEMFILE
... the latter is the special "winsockets" version ofEMFILE
, and apparently they are actually different:And right now
serve_listeners
has special handling forEMFILE
, but notWSAEMFILE
... so it's probably broken.We should:
trio/trio/_highlevel_serve_listeners.py
Lines 11 to 16 in 7b7b7d1
SocketListener
:trio/trio/_highlevel_socket.py
Lines 291 to 311 in 7b7b7d1
trio/trio/tests/test_highlevel_serve_listeners.py
Lines 102 to 105 in 7b7b7d1
The text was updated successfully, but these errors were encountered: