Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5tfP-0007nA-9p for pgsql-jdbc@arkaria.postgresql.org; Thu, 05 Sep 2019 15:27:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5tfO-0003gx-5U for pgsql-jdbc@arkaria.postgresql.org; Thu, 05 Sep 2019 15:27:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5tfN-0003gq-Pa for pgsql-jdbc@lists.postgresql.org; Thu, 05 Sep 2019 15:27:21 +0000 Received: from out-5.smtp.github.com ([192.30.252.196]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i5tfL-0007ex-0F for pgsql-jdbc@lists.postgresql.org; Thu, 05 Sep 2019 15:27:20 +0000 Date: Thu, 05 Sep 2019 08:27:17 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1567697237; bh=XDFmS07AHFO06iiL9QQieNj67E8/WYjLCpRtbyG8GEo=; h=Date:From:To:Subject:From; b=dsuuh5MUg7zrGwXAHuXH+WCFgrAh47neDI48hwcskf7CA3LFX1EMxgfc2jA5Sn44+ z/KVc30Ui5rBCyPlaQ4ibRoFZyqPLoEUDEPlDYRDvi8xO+FFvQwSwI3wdjDuz3YUId t2hHuLgYeUQbYhOX2O0WDfwCfwEb30XU/31SzvqU= From: Adrien To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] b2eaef: Ensure isValid() will not last more than timeout s... 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/master Home: https://github.com/pgjdbc/pgjdbc Commit: b2eaefef1787b8ab0b8fcb266d10be4945a4fe25 https://github.com/pgjdbc/pgjdbc/commit/b2eaefef1787b8ab0b8fcb266d10be4945a4fe25 Author: Adrien Date: 2019-09-05 (Thu, 05 Sep 2019) Changed paths: M pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java Log Message: ----------- Ensure isValid() will not last more than timeout seconds (#1557) * Ensure isValid() will not last more than timeout seconds even if the underlying socket is broken (issue #1556) * Fix check style * Add a try/catch to succeed tests * Manages simply and properly get/setNetworkTimeout() in isValid()