[pgjdbc/pgjdbc] 7e2cd5: isValid() timeout should not be blocked (#1943)
[pgjdbc/pgjdbc] 7e2cd5: isValid() timeout should not be blocked (#1943)
От:
Hugo Abreu <noreply@github.com>
Дата:
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 7e2cd55c1fbe289c0f581ac5081ef6998de75ad0
https://github.com/pgjdbc/pgjdbc/commit/7e2cd55c1fbe289c0f581ac5081ef6998de75ad0
Author: Hugo Abreu <6619758+hugomiguelabreu@users.noreply.github.com>
Date: 2020-11-12 (Thu, 12 Nov 2020)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java
A pgjdbc/src/test/java/org/postgresql/jdbc/ConnectionValidTest.java
Log Message:
-----------
isValid() timeout should not be blocked (#1943)
The usage of `setQueryTimeout();` with the same value as the `setNetworkTimeout();` is blocking the current transaction timeout.
The timeouts are blocking each other with this approach.