Skip to content

Commit

Permalink
Add a doc comment for PoolConnections.
Browse files Browse the repository at this point in the history
  • Loading branch information
acw committed Sep 3, 2024
1 parent 373de08 commit 6cee410
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fsthttp/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6cee410

Please sign in to comment.