← Commit list

8a2bb9ca24

Stefan Eissing
Stefan Eissing
2026-08-29
SUCCESS Duration: 393s

Subject

conncache: lower limit for auto maxconnects

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/conncache.c+6 -1
@@ -651,7 +651,12 @@ bool Curl_cpool_conn_now_idle(struct Curl_easy *data,
return kept;
if(!data->multi->maxconnects) {
- unsigned int running = Curl_multi_xfers_running(data->multi);
+ /* Running transfers is a weak indicator of business. When many
+ * transfers are done at the same time (parallel h1), the number
+ * may drop quite low and we do not want to close connections
+ * just to have another wave of transfers arriving next. */
+ uint32_t running = Curl_multi_xfers_running(data->multi);
+ running = CURLMAX(running, 128);
maxconnects = (running <= UINT_MAX / 4) ? running * 4 : UINT_MAX;
}
else {