[pgjdbc/pgjdbc] 6cfa65: 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] 6cfa65: isValid() timeout should not be blocked (#1943) (#...
Date: 2021-02-25 18:18:03
Message-ID: pgjdbc/pgjdbc/push/refs/heads/release/42.2/1b6957-6cfa65@github.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/release/42.2
Home: https://github.com/pgjdbc/pgjdbc
Commit: 6cfa657d9ace053a21d7b31a2c9be1cc194f2a9f
https://github.com/pgjdbc/pgjdbc/commit/6cfa657d9ace053a21d7b31a2c9be1cc194f2a9f
Author: Hugo Abreu <6619758+hugomiguelabreu(at)users(dot)noreply(dot)github(dot)com>
Date: 2021-02-25 (Thu, 25 Feb 2021)

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) (#2076)

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 plan3d 2021-03-02 13:15:14 [pgjdbc/pgjdbc] 87af89: Fixed indentation of StatementCancelState.java (#2...
Previous Message Rob Sargent 2021-02-25 00:09:09 Re: PEM to PKCS12