]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
docs(pool): fix random connection lifetime reduction: 5%, not 10%
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 29 May 2025 18:32:40 +0000 (19:32 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 29 May 2025 18:32:40 +0000 (19:32 +0100)
Close #1100.

docs/api/pool.rst

index 76aed2b7db7c5e59c3e1a9c80c1d2e652b46f3e4..aff683a5dbad41987dac25d36c8887b4c0443453 100644 (file)
@@ -125,7 +125,7 @@ The `!ConnectionPool` class
    :param max_lifetime: The maximum lifetime of a connection in the pool, in
                         seconds. Connections used for longer get closed and
                         replaced by a new one. The amount is reduced by a
-                        random 10% to avoid mass eviction.
+                        random amount up to 5% to avoid mass eviction.
    :type max_lifetime: `!float`, default: 1 hour
 
    :param max_idle: Maximum time, in seconds, that a connection can stay unused