Skip to content

Add timeout parameter to AuthorizedSession.request() #396

@plamut

Description

@plamut

As a Google Cloud client library developer, I would like an easy way of specifying a timeout when making API calls using the requests.AuthorizedSession transport, for example:

transport = AuthorizedSession(...)
transport.request(..., timeout=42)

Motivation:
Sometimes the BigQuery client gets stuck at the transport layer. Having a timeout parameter that can be passed to the transport is necessary for fixing several issue, for example: googleapis/google-cloud-python#9875 (comment)

Metadata

Metadata

Assignees

Labels

type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions