From 6cee410f4658647d766788506efa666b11735015 Mon Sep 17 00:00:00 2001 From: Adam Wick Date: Tue, 3 Sep 2024 16:41:54 +0000 Subject: [PATCH] Add a doc comment for PoolConnections. --- fsthttp/backend.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fsthttp/backend.go b/fsthttp/backend.go index 596aa57..6f61f70 100644 --- a/fsthttp/backend.go +++ b/fsthttp/backend.go @@ -300,6 +300,12 @@ func (b *BackendOptions) ClientCertificate(certificate string, key secretstore.S return b } +// PoolConnections allows users to turn connection pooling on or off for the +// backend. Pooling allows the Compute platform to reuse connections across +// multiple sessions, resulting in lower resource use at the server (because it +// does not need to reperform the TCP handhsake and TLS authentication when the +// connection is reused). The default is to pool connections. Set this to false +// to create a new connection to the backend for every incoming session. func (b *BackendOptions) PoolConnections(poolingOn bool) *BackendOptions { b.abiOpts.PoolConnections(poolingOn) return b