From 6e5dba0b6744b0b338cab8e410fb376ac1e69573 Mon Sep 17 00:00:00 2001 From: Jesus Lara Date: Sun, 19 Nov 2023 11:14:01 +0100 Subject: [PATCH] restoring some timeouts --- asyncdb/drivers/pg.py | 3 ++- asyncdb/version.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/asyncdb/drivers/pg.py b/asyncdb/drivers/pg.py index c36053cb..16710d99 100644 --- a/asyncdb/drivers/pg.py +++ b/asyncdb/drivers/pg.py @@ -217,7 +217,8 @@ async def connect(self): "application_name": self.application_name, "idle_in_transaction_session_timeout": "60min", "idle_session_timeout": "60min", - "max_parallel_workers": "512" + "statement_timeout": "60min", + "tcp_keepalives_idle": "30min" } server_settings = {**server_settings, **self._server_settings} if self.ssl: diff --git a/asyncdb/version.py b/asyncdb/version.py index c5cc2864..696504af 100644 --- a/asyncdb/version.py +++ b/asyncdb/version.py @@ -3,7 +3,7 @@ __title__ = 'asyncdb' __description__ = ('Library for Asynchronous data source connections ' 'Collection of asyncio drivers.') -__version__ = '2.5.11' +__version__ = '2.5.12' __author__ = 'Jesus Lara' __author_email__ = 'jesuslarag@gmail.com' __license__ = 'BSD'