Skip to content

[PECO-244] Make http proxies work #81

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

Merged
merged 2 commits into from
Apr 14, 2023
Merged

[PECO-244] Make http proxies work #81

merged 2 commits into from
Apr 14, 2023

Conversation

susodapop
Copy link
Contributor

@susodapop susodapop commented Jan 12, 2023

Description

This fix makes the connector work with standard proxies using Python's environment variable configuration spec. This fix is taken directly from @pspeter's pull request against the thrift library here: apache/thrift#2565

Since we are already overriding the THttpClient, we don't need to wait for the fix to merge into thrift upstream to implement it locally.

Related Tickets & Documents

Closes #22

Uses the fix identified in apache/thrift#2565

H/T @pspeter

Signed-off-by: Jesse Whitehouse <[email protected]>
Copy link
Contributor

@andrefurlan-db andrefurlan-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me


@staticmethod
def basic_proxy_auth_header(proxy):
logger.warning("Hey I was called!")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logger.warning("Hey I was called!")

Probably leftover from debugging?

@Wirick
Copy link

Wirick commented Mar 29, 2023

Just bumping that I'm really looking forward to this issue being resolved to use the connector :)

@susodapop susodapop merged commit b55c7b8 into main Apr 14, 2023
@susodapop susodapop deleted the PECO-244 branch April 14, 2023 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues with using http proxy
5 participants