Skip to content

Commit e4765fe

Browse files
committed
New idea: In some situations it may be interesting to close unused connections after a time, e.g. if a database waits for "idle" moments in the night to make backups.
1 parent 398752a commit e4765fe

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

DBUtils/PersistentDB.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
7474
Ideas for improvement:
7575
76-
* Add thread for monitoring and restarting bad or expired connections
77-
(similar to DBConnectionPool/ResourcePool by Warren Smith).
76+
* Add a thread for monitoring, restarting (or closing) bad or expired
77+
connections (similar to DBConnectionPool/ResourcePool by Warren Smith).
7878
* Optionally log usage, bad connections and exceeding of limits.
7979
8080

DBUtils/PersistentPg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
7373
Ideas for improvement:
7474
75-
* Add thread for monitoring and restarting bad or expired connections
76-
(similar to DBConnectionPool/ResourcePool by Warren Smith).
75+
* Add a thread for monitoring, restarting (or closing) bad or expired
76+
connections (similar to DBConnectionPool/ResourcePool by Warren Smith).
7777
* Optionally log usage, bad connections and exceeding of limits.
7878
7979

DBUtils/PooledDB.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
9999
Ideas for improvement:
100100
101-
* Add thread for monitoring and restarting bad or expired connections
102-
(similar to DBConnectionPool/ResourcePool by Warren Smith).
101+
* Add a thread for monitoring, restarting (or closing) bad or expired
102+
connections (similar to DBConnectionPool/ResourcePool by Warren Smith).
103103
* Optionally log usage, bad connections and exceeding of limits.
104104
105105

DBUtils/PooledPg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
8383
Ideas for improvement:
8484
85-
* Add thread for monitoring and restarting bad or expired connections
86-
(similar to DBConnectionPool/ResourcePool by Warren Smith).
85+
* Add a thread for monitoring, restarting (or closing) bad or expired
86+
connections (similar to DBConnectionPool/ResourcePool by Warren Smith).
8787
* Optionally log usage, bad connections and exceeding of limits.
8888
8989

0 commit comments

Comments
 (0)