[pgjdbc/pgjdbc] 7e2cd5: isValid() timeout should not be blocked (#1943)

From: Hugo Abreu <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] 7e2cd5: isValid() timeout should not be blocked (#1943)
Date: 2020-11-12 14:05:46
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/dbb30a-7e2cd5@github.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 7e2cd55c1fbe289c0f581ac5081ef6998de75ad0
https://github.com/pgjdbc/pgjdbc/commit/7e2cd55c1fbe289c0f581ac5081ef6998de75ad0
Author: Hugo Abreu <6619758+hugomiguelabreu(at)users(dot)noreply(dot)github(dot)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.

Browse pgsql-jdbc by date

  From Date Subject
Next Message costa100 2020-11-12 14:07:51 [pgjdbc/pgjdbc] 0b74ae: Fixed issue #892 (#1910)
Previous Message Sehrope Sarkuni 2020-11-12 14:03:13 [pgjdbc/pgjdbc] dbb30a: Fix PGCopyOutputStream out of order writes (#1854)