-
-
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
incorrect operation with uvloop #7686
Comments
I am using Python 3.12 with I added a
The warning is a bit annoying. I'd appreciate it if this can be fixed. |
I think the check for that warning uses some implementation detail in asyncio, so I guess that's why it trips when uvloop is used. |
@Dreamsorcerer looks like you're right: MagicStack/uvloop#588. Disclaimer: following is my recollection but the memories are likely skewed. I don't remember all the quirks around this, unfortunately. It was around time when aiohttp was dropping Python 3.6, but stdlib "kinda supported" TLS in TLS in all the places if this private I haven't checked this in a long time but I was under impression that Python 3.11 didn't end up enabling this. Perhaps Python 3.12 did. Somebody needs to dedicate a substantial amount of time to re-familiarize with this bit of the code base to be able to make a better judgement... @Skimige FWIW Python's default warning filtering allows end-users to ignore them. So it should be fairly straightforward to suppress it. |
I suppose we could drop the warning and always set |
Describe the bug
When using the
proxy
parameter with uvloop I get theRuntimeWarning: An HTTPS request is being sent through an HTTPS proxy. This support for TLS in TLS
although the request is made without errors and the IP is changed, does this warning affect anything?To Reproduce
If you make a request without uvloop, the warning does not appear
Expected behavior
I expected that there would be no warning when using uvloop
Logs/tracebacks
Python Version
aiohttp Version
multidict Version
yarl Version
OS
macOS/ubuntu
Related component
Client
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: