Skip to content

Commit bb06361

Browse files
committed
reduce postgresql connection timeout: 10s to 5s
1 parent 098a249 commit bb06361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connectors/postgis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def __init__(self, uri):
147147
self.passwd = uri.password()
148148

149149
try:
150-
self.con = psycopg2.connect(self.connection_info(), connect_timeout=10)
150+
self.con = psycopg2.connect(self.connection_info(), connect_timeout=5)
151151
except psycopg2.OperationalError as e:
152152
raise DbError(e)
153153

0 commit comments

Comments
 (0)