We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57c66db commit 7af9a36Copy full SHA for 7af9a36
1 file changed
replane/_sync.py
@@ -359,20 +359,23 @@ def _connect_stream(self) -> None:
359
)
360
361
# Create connection
362
+ # Note: SSE connections are long-lived, so we use the inactivity timeout
363
+ # rather than the short request timeout. The inactivity timeout is used
364
+ # for detecting dead connections during streaming.
365
conn: http.client.HTTPConnection
366
if is_https:
367
context = ssl.create_default_context()
368
conn = http.client.HTTPSConnection(
369
host,
370
port,
- timeout=self._request_timeout,
371
+ timeout=self._inactivity_timeout,
372
context=context,
373
374
else:
375
conn = http.client.HTTPConnection(
376
377
378
379
380
381
try:
0 commit comments