Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

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

Merged
busunkim96 merged 2 commits into
googleapis:masterfrom
plamut:iss-434
Jan 23, 2020
Merged

feat: add non-None default timeout to AuthorizedSession.request()#435
busunkim96 merged 2 commits into
googleapis:masterfrom
plamut:iss-434

Conversation

@plamut
Copy link
Copy Markdown
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
Copy Markdown
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
Comment thread google/auth/transport/requests.py
Comment thread google/auth/transport/requests.py Outdated
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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