-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix(connector): propagate proxy headers on connection reuse #11777
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #11777 +/- ##
==========================================
- Coverage 98.74% 98.74% -0.01%
==========================================
Files 127 127
Lines 43845 43879 +34
Branches 2332 2337 +5
==========================================
+ Hits 43295 43327 +32
- Misses 389 392 +3
+ Partials 161 160 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
CodSpeed Performance ReportMerging #11777 will not alter performanceComparing Summary
Footnotes |
41a1fc8 to
dba65ab
Compare
|
Thanks for the feedback, I took all your comments into account. I changed the tests with a state variable to make them easier to understand, created a helper function to centralize proxy request creation, and dealt with the case when having to wait for a connection to become available. I also use this helper function when creating a proxy connection, to avoid code duplication. Tests are now failing for macos though, and I don't quite understand why (I don't have a mac to reproduce the issue), any help to fix that one would be appreciated. |
|
Test failure looks like a transient timing issue. I restarted the CI. About to take off for the states so I'll try to look late late tonight if we land on time or tomorrow between meetings |
|
Looks like we made it past the MacOS failure but hit a real issue. |
Could you explain which command to use to run tests for python 3.14 ? I don't see anything in the makefile and all the attempts I made to run it in python 3.14 resulted in errors or segmentation faults :/ That way I'll try to reproduce the issue and figure out where it comes from.. Or if you know where the issue comes from already let me know. |
|
Ignore that error. That's an issue with blockbuster on Python 3.14.1t. I'll figure out a workaround shortly if that library doesn't fix it. |
|
Resolved |
|
Alright thanks for your support, anything else you need to merge this? |
|
Needs a small cleanup to the change log message. I'll take care of it |
This reverts commit 8ab74f3.
Backport to 3.13: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 7bbf17d on top of patchback/backports/3.13/7bbf17d09d5f87b93022d340e39d53f386d5d485/pr-11777 Backporting merged PR #11777 into master
🤖 @patchback |
Backport to 3.14: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 7bbf17d on top of patchback/backports/3.14/7bbf17d09d5f87b93022d340e39d53f386d5d485/pr-11777 Backporting merged PR #11777 into master
🤖 @patchback |

What do these changes do?
Pass proxy headers when re-using a connection from the pool. This prevents 407 error codes when a connection is reused with a proxy using HTTP (there is no issue with HTTPS).
Are there changes in behavior for the user?
Reusing connections with a proxy will now always pass proxy headers for HTTP calls
Is it a substantial burden for the maintainers to support this?
No
Related issue number
Fixes #2596
Checklist
CONTRIBUTORS.txtCHANGES/folder