mirror of
https://github.com/jwadow/kiro-gateway.git
synced 2026-04-25 01:15:57 +03:00
[PR #9] [MERGED] feat: add configurable streaming read timeout #55
Labels
No labels
bug
bug
enhancement
enhancement
fixed
fixed
invalid
needs-info
needs-testing
pull-request
question
upstream
wontfix
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/kiro-gateway-jwadow#55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jwadow/kiro-gateway/pull/9
Author: @Kartvya69
Created: 12/18/2025
Status: ✅ Merged
Merged: 12/18/2025
Merged by: @jwadow
Base:
main← Head:feature/streaming-read-timeout📝 Commits (2)
0bdeb44feat: add configurable streaming read timeout3f086c1docs: add CONTRIBUTIONS.md with contributor Kartvya69📊 Changes
5 files changed (+52 additions, -8 deletions)
View changed files
📝
.env.example(+7 -0)➕
CONTRIBUTORS.md(+7 -0)📝
kiro_gateway/config.py(+7 -0)📝
kiro_gateway/http_client.py(+17 -4)📝
tests/unit/test_http_client.py(+14 -4)📄 Description
Summary
Add STREAMING_READ_TIMEOUT config option to prevent premature disconnects during long-running streaming responses (e.g., tool calls, complex reasoning).
Changes
STREAMING_READ_TIMEOUTenv var (default: 300s / 5 minutes)httpx.Timeoutwith separate connect/read timeouts for streaming requestsWhy
During streaming, the model may pause between chunks while "thinking" (especially for tool calls or complex reasoning). The previous implementation used the same timeout for both connection and read operations, which could cause premature disconnects during these pauses.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.