From afe249b6d3bb8722f9f37ec76717f8e66b889e79 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 21 Jul 2026 23:53:01 +0200 Subject: [PATCH] Do not disconnect active connections. The timeout option stops the connection if it has now finished after the specified time, even if data transfer is underway. Switch to using a low speed timeout instead, which stops the connection only if no data is being transferred. A typical case where this was hit was a slow-responding LLM generating a large amount of text. The high timeout value is still needed to account for long prefill times. --- profiler/src/profiler/TracyLlmApi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyLlmApi.cpp b/profiler/src/profiler/TracyLlmApi.cpp index 07a2864b..277bf3eb 100644 --- a/profiler/src/profiler/TracyLlmApi.cpp +++ b/profiler/src/profiler/TracyLlmApi.cpp @@ -29,7 +29,8 @@ void TracyLlmApi::SetupCurl( void* curl ) curl_easy_setopt( curl, CURLOPT_CA_CACHE_TIMEOUT, 604800L ); curl_easy_setopt( curl, CURLOPT_FOLLOWLOCATION, 1L ); curl_easy_setopt( curl, CURLOPT_CONNECTTIMEOUT, 5 ); - curl_easy_setopt( curl, CURLOPT_TIMEOUT, 1200 ); + curl_easy_setopt( curl, CURLOPT_LOW_SPEED_LIMIT, 1 ); + curl_easy_setopt( curl, CURLOPT_LOW_SPEED_TIME, 1200 ); curl_easy_setopt( curl, CURLOPT_USERAGENT, "Tracy Profiler" ); }