From 9bc71b00106a3ca10f3ae20aecbfc4e67a031f2f Mon Sep 17 00:00:00 2001 From: Romain Date: Mon, 28 Apr 2025 09:10:04 +0200 Subject: [PATCH] Add a note about how to disable connection reuse with backends --- docs/content/routing/overview.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/content/routing/overview.md b/docs/content/routing/overview.md index b49c9748b..96adbc649 100644 --- a/docs/content/routing/overview.md +++ b/docs/content/routing/overview.md @@ -325,6 +325,11 @@ serversTransport: --serversTransport.maxIdleConnsPerHost=7 ``` +!!! info "Disable connection reuse" + + The default value of `maxIdleConnsPerHost` is 2, and the zero value is the fallback to the default (2). + If you want to disable connection reuse, set `maxIdleConnsPerHost` to -1. + ### `forwardingTimeouts` `forwardingTimeouts` is about a number of timeouts relevant to when forwarding requests to the backend servers.