Skip to content

Make platform HTTP write timeout unbounded and configurable - #121

Merged
berges99 merged 1 commit into
mainfrom
fix/platform-http-write-timeout
Aug 7, 2026
Merged

Make platform HTTP write timeout unbounded and configurable#121
berges99 merged 1 commit into
mainfrom
fix/platform-http-write-timeout

Conversation

@berges99

@berges99 berges99 commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Default platform HTTP timeout is now connect 10s with unbounded write/read (was write=10s via Timeout(10, read=None)).
  • Configurable via TIMBAL_HTTP_TIMEOUT, TIMBAL_HTTP_WRITE_TIMEOUT, TIMBAL_HTTP_READ_TIMEOUT (none = unbounded).
  • Exhausted httpx timeouts raise PlatformError with phase + env knob hint instead of a bare WriteTimeout.

Test plan

  • pytest python/tests/platform/test_platform_utils.py (52 passed)
  • Smoke a large platform upload / KB ingest on a slow link
  • Confirm TIMBAL_HTTP_WRITE_TIMEOUT=10 restores the old write cap

Made with Cursor

Large platform uploads were dying on httpx.WriteTimeout after 10s because
Timeout(10, read=None) still capped write. Default write/read to unbounded,
add TIMBAL_HTTP_*_TIMEOUT env knobs, and surface timeouts as PlatformError
with the phase + knob to raise.

Co-authored-by: Cursor <cursoragent@cursor.com>

@selormwalker selormwalker left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice improvements! Ready for merging.

@selormwalker selormwalker left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great work on this pull request. Tested and verified changes.

@berges99
berges99 merged commit 047aad2 into main Aug 7, 2026
11 checks passed
@berges99
berges99 deleted the fix/platform-http-write-timeout branch August 7, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants