Skip to content
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

Add secure proxy support in the client #5992

Merged
merged 1 commit into from
Oct 5, 2021

Commits on Oct 5, 2021

  1. Add support for secure proxies in the client

    This patch opens up the code path and adds the implementation that
    allows end-users to start sending HTTPS requests through
    HTTPS proxies.
    
    The support for TLS-in-TLS (needed for this to work) in the stdlib is
    kinda available since Python 3.7 but is disabled for `asyncio` with an
    attribute/flag/toggle. When the upstream CPython enables it finally,
    aiohttp v3.8+ will be able to work with it out of the box.
    
    Currently the tests monkey-patch `asyncio` in order to verify that
    this works. The users who are willing to do the same, will be able to
    take advantage of it right now. Eventually (hopefully starting Python
    3.11), the need for monkey-patching should be eliminated.
    
    Refs:
    * https://bugs.python.org/issue37179
    * python/cpython#28073
    * https://docs.aiohttp.org/en/stable/client_advanced.html#proxy-support
    * aio-libs#6044
    
    Resolves aio-libs#3816
    Resolves aio-libs#4268
    
    Co-Authored-By: Brian Bouterse <bmbouter@gmail.com>
    Co-Authored-By: Jordan Borean <jborean93@gmail.com>
    Co-Authored-By: Sviatoslav Sydorenko <webknjaz@redhat.com>
    3 people committed Oct 5, 2021
    Configuration menu
    Copy the full SHA
    3cb2979 View commit details
    Browse the repository at this point in the history