Skip to content

Commit

Permalink
removing idle timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
phenobarbital committed Oct 30, 2023
1 parent ce20ad6 commit f952837
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions asyncdb/drivers/pg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion asyncdb/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = '[email protected]'
__license__ = 'BSD'

0 comments on commit f952837

Please sign in to comment.