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: add socket getfqdn and gethostbyaddr functions #87490
Comments
Added socket getfqdn and gethostbyaddr functions with threadpoolexecutor to asyncio library |
Can you explain the reasoning for this change? Your PR has no tests to demonstrate what this change is useful for. |
@JelleZijlstra . getfqdn function sends request to dns server and waits for it to recieve information. and this blocks thread. |
I don't think that these functions are worth adding wrappers for, you can call these asynchronously with |
@kumaraditya303 |
Yeah, I know that we did this for those specific functions (which are called by other parts of asyncio itself), but I don't think we need to replicate the entire socket API here, especially since it's a one-line recipe to do this yourself. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: