Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFLDF-0006S5-8v for pgsql-jdbc@arkaria.postgresql.org; Thu, 25 Feb 2021 18:18:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lFLDE-0007WQ-1m for pgsql-jdbc@arkaria.postgresql.org; Thu, 25 Feb 2021 18:18:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFLDD-0007Vj-R2 for pgsql-jdbc@lists.postgresql.org; Thu, 25 Feb 2021 18:18:07 +0000 Received: from out-17.smtp.github.com ([192.30.252.200] helo=smtp.github.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFLDA-0005Vs-RE for pgsql-jdbc@lists.postgresql.org; Thu, 25 Feb 2021 18:18:06 +0000 Received: from github.com (hubbernetes-node-3e30a4e.va3-iad.github.net [10.48.123.17]) by smtp.github.com (Postfix) with ESMTPA id 2CE495C003E for ; Thu, 25 Feb 2021 10:18:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1614277083; bh=zDUIn7Izcicvl4o/2HqIx6if1w/beetRrUWv1MljkxI=; h=Date:From:To:Subject:From; b=OfhbrVFoc0uNYfXOTr19Z7Hsym/DdwXhqASeANetvteKq+Y3pJdfOzIyM5obQDB6t e6s4Edm1M0/wrUdsY3NtvyD2aeholya5OPptwQagzc/o/qvUCUEioxiZeqQxeNCQ6p wHVeKTGOKMmVc0dzvaU2gUJUjm10a8l82kVwqvpQ= Date: Thu, 25 Feb 2021 10:18:03 -0800 From: Hugo Abreu To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 6cfa65: isValid() timeout should not be blocked (#1943) (#... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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@users.noreply.github.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.