From: Hugo Abreu <noreply@github.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: [pgjdbc/pgjdbc] 7e2cd5: isValid() timeout should not be blocked (#1943)
Date: Thu, 12 Nov 2020 06:05:46 -0800
Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/dbb30a-7e2cd5@github.com> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: noreply@github.com
Subject: Re: [pgjdbc/pgjdbc] 7e2cd5: isValid() timeout should not be blocked (#1943)
In-Reply-To: <pgjdbc/pgjdbc/push/refs/heads/master/dbb30a-7e2cd5@github.com>
References: <pgjdbc/pgjdbc/push/refs/heads/master/dbb30a-7e2cd5@github.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox