forked from mtusi2026/mtusi2026lab7
Проверять соединение PostgreSQL перед рабочей транзакцией
This commit is contained in:
@@ -43,6 +43,10 @@ class Database:
|
||||
},
|
||||
min_size=1,
|
||||
max_size=size,
|
||||
# TLS gateways retire established sessions. Validate an idle
|
||||
# connection before handing it to a business transaction; a broken
|
||||
# checkout must not consume a lease or retry an uncertain COMMIT.
|
||||
check=ConnectionPool.check_connection,
|
||||
timeout=1,
|
||||
max_lifetime=30,
|
||||
max_idle=15,
|
||||
|
||||
Reference in New Issue
Block a user