-
Notifications
You must be signed in to change notification settings - Fork 309
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
fix: fix socket leak in impersonated_credentials #1123
fix: fix socket leak in impersonated_credentials #1123
Conversation
impersonated_credentials.Credentials.sign_bytes() created a session that wasn't closed leaking a socket. This fixes the issue by always closing the requests session after a signing request is complete. Fixes googleapis#1122
ac64264
to
2dcb6d3
Compare
The failing presubmit looks like nothing to do with my change https://source.cloud.google.com/results/invocations/29f9a2fd-8d3a-4251-88f0-4598f6910f6b/targets/github%2Fgoogle-auth-library-python%2Fsystem_tests/tests
|
I've pushed a new test token to your branch. The tests will pass now. |
@clundin25 thanks, looks like everything is green now :) I don't have a merge button so I assume you'll merge this patch when you're ready? |
@stewartmiles Thanks for the contribution! |
impersonated_credentials.Credentials.sign_bytes() created
a session that wasn't closed leaking a socket. This fixes
the issue by always closing the requests session after
a signing request is complete.
Fixes #1122