Skip to content

Don't call should_not_be_proxied on each request #1062

Description

@lovelydinosaur

Currently we're calling should_not_be_proxied on each request, which is problematic for two reasons...

  • It's ignoring the trust_env, and relying on an environment variable unilaterally.
  • It's preforming an extra chunk of work on each request that we'd rather not do.

Activity

  1. added
    perfIssues relating to performance
    proxiesIssues related to HTTP and SOCKS proxies
    on Jul 16, 2020
  2. cdeler commented on Jul 20, 2020

    @cdeler
    Contributor

    @tomchristie

    Do I understand correctly, that you told about working with requests on session level?

    Something a-la introducing url->proxy transport cache on the Session level

    Also there is a question about "trust_env". Do you mean this piece of code: httpx/_utils.py#L267 ?

    So, please, could you help me, what should someone (e.g. me) do to complete the issue?

  3. cdeler commented on Jul 21, 2020

    @cdeler
    Contributor

    @tomchristie , @florimondmanca ^ if so, I can try to work on it. Please just advise me if I was right.

  4. lovelydinosaur commented on Jul 21, 2020

    @lovelydinosaur
    MemberAuthor

    Not sure if I'd recommend contributors jumping on this one, since it might be a bit fiddly.

  5. added this to the v0.14 milestone on Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    perfIssues relating to performanceproxiesIssues related to HTTP and SOCKS proxies

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions