Skip to content

feat(storage): add connect and read timeouts - #7349

Open
alex-hunt-materialize wants to merge 5 commits into
googleapis:mainfrom
alex-hunt-materialize:storage-connect-read-timeouts
Open

alex-hunt-materialize wants to merge 5 commits into
googleapis:mainfrom
alex-hunt-materialize:storage-connect-read-timeouts

Conversation

@alex-hunt-materialize

Copy link
Copy Markdown

Adds ClientBuilder::with_connect_timeout and with_read_timeout, applied to the HTTP transport. Bumps gax to 1.16.0 and gax-internal to 0.7.22.

Fixes #7234

@alex-hunt-materialize
alex-hunt-materialize requested review from a team as code owners November 2, 2026 17:24
@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Nov 2, 2026
@google-cla

google-cla Bot commented Nov 2, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for configuring connection and read timeouts on HTTP requests within the Google Cloud Rust SDK. Specifically, it adds connect_timeout and read_timeout options to the client builder configurations, integrates them into the underlying ReqwestClient in google-cloud-gax-internal, and exposes them via the ClientBuilder in google-cloud-storage. Additionally, corresponding tests and documentation examples are added. Feedback on the changes suggests avoiding start_paused = true in the new integration test since it performs real network I/O, which can cause virtual clock issues, and adjusting the elapsed time assertion to account for real-world timing variations.

Comment thread src/gax-internal/tests/http_timeout.rs Resolved
Comment thread src/gax-internal/tests/http_timeout.rs Resolved
Adds ClientBuilder::with_connect_timeout and with_read_timeout, applied
to the HTTP transport. Bumps gax to 1.16.0 and gax-internal to 0.7.22.

Fixes googleapis#7234
@alex-hunt-materialize
alex-hunt-materialize force-pushed the storage-connect-read-timeouts branch from bfea5f8 to 87f5e3c Compare November 2, 2026 17:27
@alex-hunt-materialize
alex-hunt-materialize marked this pull request as draft November 2, 2026 17:27
@alex-hunt-materialize
alex-hunt-materialize marked this pull request as ready for review November 2, 2026 17:33
Comment thread src/gax-internal/tests/http_timeout.rs Resolved
Comment thread src/gax-internal/src/http.rs Resolved
@joshuatants

Copy link
Copy Markdown
Contributor

Thank you!

…timeouts

# Conflicts:
#	src/gax-internal/echo-server/src/lib.rs
@val-materialize

Copy link
Copy Markdown

Hi @joshuatants, happy Monday! Alex has addressed the review feedback, so this is ready for another look whenever you have a moment. Thanks!

@alex-hunt-materialize

Copy link
Copy Markdown
Author

Main now has unpublished updates to google-cloud-gax-internal and google-cloud-gax. If those get released before this is merged, we’ll need to update this PR to bump those versions.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set connect_timeout and read_timeout on the storage client

3 participants