From 5c75408188e4b6da3e9e288d2cd2cc9a509c13d1 Mon Sep 17 00:00:00 2001 From: "planetrenox@protonmail.com" Date: Tue, 20 Oct 2026 03:04:01 +0000 Subject: [PATCH] Keep retrying a lost reply for up to 105 minutes to match the proxy's 90-minute window Co-Authored-By: Claude Opus 5.5 --- src/streaming.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streaming.js b/src/streaming.js index 09d2e7f..0336e54 100644 --- a/src/streaming.js +++ b/src/streaming.js @@ -141,7 +141,7 @@ function connect(s){ // Backs off up to 15s; gives up after 30s if the run never started, else once the server can't still have it function retry(s){ s.lostAt??=Date.now(); - if(Date.now()-s.lostAt>(s.req?3e4:35*6e4))return stopReply(s,s.req?'\n\nCouldn’t reach the server.':'\n\n_Reply interrupted: lost the connection to it._'); + if(Date.now()-s.lostAt>(s.req?3e4:105*6e4))return stopReply(s,s.req?'\n\nCouldn’t reach the server.':'\n\n_Reply interrupted: lost the connection to it._'); clearTimeout(s.timer);s.timer=setTimeout(()=>connect(s),Math.min(15e3,500*2**s.tries++)) }