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

feat: add non-None default timeout to AuthorizedSession.request() #435

Merged
merged 2 commits into from
Jan 23, 2020

Conversation

plamut
Copy link
Contributor

@plamut plamut commented Jan 23, 2020

Closes #434.

This PR adds a non-None default timeout to AuthorizedSession.request() to prevent requests from hanging indefinitely in a default case.

Should help with https://github.com/googleapis/google-cloud-python/issues/10182

@plamut plamut added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Jan 23, 2020
@plamut plamut requested a review from busunkim96 January 23, 2020 11:45
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 23, 2020
@plamut
Copy link
Contributor Author

plamut commented Jan 23, 2020

Well go figure, running the blacken session can cause syntax errors, because a trailing comma is not allowed after **kwargs in Python <= 3.5. 😄

@plamut plamut mentioned this pull request Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set the default request timeout to something other than None
4 participants