Skip to content

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