-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Calling BaseRequest.host can do blocking I/O if the host header is missing #9308
Comments
Fix for Home Assistant is home-assistant/core#126882 |
I'm not sure how likely it would be that its not cached locally.. but if its missing from |
Actually it appears quite likely since the first system I tested it on did blocking I/O
|
request.host can fallback to doing blocking I/O because of aio-libs/aiohttp#9308
I haven't come up with a solution to this that isn't a breaking change to remove the blocking method |
aiohttp/aiohttp/web_request.py
Line 428 in 0b8be7f
There is a fallback to
socket.getfqdn()
which is not async safe and will block the loop while its resolvedThe text was updated successfully, but these errors were encountered: