-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Asyncio's loop.create_unix_server makes blocking calls #129807
Comments
cc @graingert |
The calls you mention are not worth making asynchronous -- we'd just be making a simple thing complicated for no reason.
|
Thanks for the quick feedback. In general, it would be nice to have guidelines in the asyncio docs as to which framework functions are considered blocking and which are not. |
I don’t understand if you’re arguing from a conceptual purity concern, or if this has caused you problems in an actual project? |
It's more conceptual and looking for best practices, that make the system the most stable and performant. |
Okay, thanks. Then I will keep this closed. |
Bug report
Bug description:
It seems
create_unix_server
makes some calls to blocking functions.cpython/Lib/asyncio/unix_events.py
Line 273 in 4d56c40
In particular:
trio
: socket.bind() is a blocking call python-trio/trio#241)CPython versions tested on:
3.11
Operating systems tested on:
No response
The text was updated successfully, but these errors were encountered: