From f952837d11ee2a6592d983c324d9fca3c686b207 Mon Sep 17 00:00:00 2001 From: Jesus Lara Date: Mon, 30 Oct 2023 23:52:17 +0100 Subject: [PATCH] removing idle timeouts --- asyncdb/drivers/pg.py | 7 +++---- asyncdb/version.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/asyncdb/drivers/pg.py b/asyncdb/drivers/pg.py index 39d00ea7..7197f33e 100644 --- a/asyncdb/drivers/pg.py +++ b/asyncdb/drivers/pg.py @@ -215,9 +215,9 @@ async def connect(self): # TODO: pass a setup class for set_builtin_type_codec and a setup for add listener server_settings = { "application_name": self.application_name, - "idle_in_transaction_session_timeout": "30min", + # "idle_in_transaction_session_timeout": "30min", "idle_session_timeout": "60min", - "tcp_keepalives_idle": "360", + "tcp_keepalives_idle": "3600", "max_parallel_workers": "512" } server_settings = {**server_settings, **self._server_settings} @@ -613,9 +613,8 @@ def _decoder(value): server_settings = { "application_name": self.application_name, - "idle_in_transaction_session_timeout": "30min", "idle_session_timeout": "60min", - "tcp_keepalives_idle": "360", + "tcp_keepalives_idle": "3600", "max_parallel_workers": "512" } server_settings = {**server_settings, **self._server_settings} diff --git a/asyncdb/version.py b/asyncdb/version.py index 90cecb2d..f9a58f45 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.6' +__version__ = '2.5.7' __author__ = 'Jesus Lara' __author_email__ = 'jesuslarag@gmail.com' __license__ = 'BSD'