Skip to content

Storage: Add sensible connect (and maybe read) timeouts to avoid hanging #8571

@crwilcox

Description

@crwilcox

After some spelunking, started from reports like #5909 where users have reported hanging on requests, I have uncovered that we don't have read or connect timeouts for our default requests session on storage.

I think adding a connect timeout is warranted for sure, and possible having a read timeout, makes sense? urllib3 via request.session is what is controlling that which by default doesn't specify anything. https://urllib3.readthedocs.io/en/latest/reference/urllib3.util.html#module-urllib3.util.timeout

I propose a connection timeout of 1 minute. I am less sure of read timeout as that would vary a bit between crud and streaming operations.

cc: @frankyn

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.needs more infoThis issue needs more information from the customer to proceed.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