]> granicus.if.org Git - pgbouncer/commit
Fix idle_transaction_timeout calculation
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 24 Jun 2019 14:46:45 +0000 (16:46 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 24 Jun 2019 20:00:17 +0000 (22:00 +0200)
commit33f8c616b610470ec99761240e746e0ed94b62b7
tree40d2fbe209c3a31dc7e59bae9056dcf61f9320d3
parentba153af9225c22ebaf805d96481ff026da473664
Fix idle_transaction_timeout calculation

idle_transaction_timeout should count from the last request of the
server, because the server sent the idle information.  The code
previously used the last request of the client, which could lead to
premature timeouts.

fixes #125
src/janitor.c
test/test.sh