Skip to content

Disable read timeout for streaming#169

Merged
cploujoux merged 1 commit into
mainfrom
mendral/fix-streaming-read-timeout
Jun 12, 2026
Merged

Disable read timeout for streaming#169
cploujoux merged 1 commit into
mainfrom
mendral/fix-streaming-read-timeout

Conversation

@mendral-app

@mendral-app mendral-app Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Disable the default 5-second httpx read timeout on the streaming connection in start_streaming() to prevent ReadTimeout errors when sandbox processes go quiet during log streaming.

Details

The httpx.AsyncClient() at line 158 of process.py was using the default 5s read timeout. When a sandbox process doesn't produce stdout/stderr for more than 5 seconds, the streaming connection would time out with a ReadTimeout exception (Sentry issue).

The fix adds timeout=None to disable all timeouts on this long-lived streaming connection, matching the pattern already used at line 310 in the same file.

Insight: https://app.mendral.com/insights/01KTY5CWH09GKGXCH91PCT6A34


Note

Created by Mendral. Tag @mendral-app with feedback or questions.

The httpx.AsyncClient() in start_streaming() used the default 5s read
timeout, causing ReadTimeout when sandbox processes go quiet for more
than 5 seconds during log streaming. Setting timeout=None disables all
timeouts for this long-lived streaming connection, matching the pattern
already used elsewhere in the same file.
@mendral-app mendral-app Bot requested a review from a team June 12, 2026 14:58
@cploujoux cploujoux marked this pull request as ready for review June 12, 2026 15:04
@cploujoux cploujoux merged commit 4d6b34a into main Jun 12, 2026
15 of 17 checks passed
@cploujoux cploujoux deleted the mendral/fix-streaming-read-timeout branch June 12, 2026 15:25
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.

1 participant