From 86f450dfb5898d388f9327b316899e777229f3ec Mon Sep 17 00:00:00 2001 From: "mendral-app[bot]" <233154221+mendral-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 07:58:02 -0700 Subject: [PATCH] fix: disable read timeout for streaming httpx client 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. --- src/blaxel/core/sandbox/default/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blaxel/core/sandbox/default/process.py b/src/blaxel/core/sandbox/default/process.py index 0f440f7..cae39b9 100644 --- a/src/blaxel/core/sandbox/default/process.py +++ b/src/blaxel/core/sandbox/default/process.py @@ -155,7 +155,7 @@ async def start_streaming(): headers = {**settings.headers, **self.sandbox_config.headers} try: - async with httpx.AsyncClient() as client_instance: + async with httpx.AsyncClient(timeout=None) as client_instance: async with client_instance.stream("GET", url, headers=headers) as response: if response.status_code != 200: raise Exception(f"Failed to stream logs: {await response.aread()}")