Skip to content

Commit 53c5433

Browse files
ganisbackyuvipanda
authored andcommitted
no timeout for stream api
1 parent ba33538 commit 53c5433

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jupyter_server_proxy/handlers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,10 @@ def streaming_callback(chunk):
414414
req = self._build_proxy_request(host, port, proxied_path, body,
415415
streaming_callback=streaming_callback,
416416
header_callback=header_callback)
417-
417+
418+
# no timeout for stream api
419+
req.request_timeout = 0
420+
418421
try:
419422
response = await client.fetch(req, raise_error=False)
420423
except httpclient.HTTPError as err:

0 commit comments

Comments
 (0)