Skip to content

Raise default timeout to 30s (10s connect) and make it configurable - #171

Closed
mroloux wants to merge 1 commit into
masterfrom
matti/seats-1825-seatsio-python-raise-default-timeout-to-30s-10s-connect
Closed

mroloux wants to merge 1 commit into
masterfrom
matti/seats-1825-seatsio-python-raise-default-timeout-to-30s-10s-connect

Conversation

@mroloux

@mroloux mroloux commented Oct 26, 2026

Copy link
Copy Markdown
Member

https://linear.app/seatsio/issue/SEATS-1825

Issue: The default 10s timeout is too short when requests wait in Cloud Run's queue during traffic spikes.

Fix: The default read timeout is now 30s, with a separate 10s connect timeout. It can be configured via the new timeout option on Client.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 26, 2026 08:58

Copilot AI 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.

🟢 Approval recommended

Static review supports correct timeout forwarding and compatibility with existing callers, with no blocking issues identified; tests were not executed.

No open issues 🎉

What changed in this PR

This PR gives queued API requests more time to complete by raising the default read timeout to 30 seconds while retaining a 10-second connect timeout.

Changes:

  • Adds a configurable timeout option to Client and forwards it to HttpClient.
  • Tests default timeouts and custom tuple/scalar values for GET and POST requests.
  • Documents timeout configuration and retry behavior.
File Description
tests/​testTimeout.py Adds tests for default and custom timeout forwarding.
seatsio/​httpClient.py Sets the default connect/read timeout to (10, 30).
seatsio/​client.py Exposes and forwards the optional timeout parameter.
README.md Documents timeout defaults, configuration, and retry behavior.

Review effort: Balanced

@mroloux mroloux closed this Oct 26, 2026
@mroloux
mroloux deleted the matti/seats-1825-seatsio-python-raise-default-timeout-to-30s-10s-connect branch October 26, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants