[pgjdbc/pgjdbc] b2eaef: Ensure isValid() will not last more than timeout s...

Adrien <[email protected]> Thu, 05 Sep 2019 08:27:17 -0700
Newsgroups gmane.comp.db.postgresql.jdbc
Message-ID <pgjdbc/pgjdbc/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: b2eaefef1787b8ab0b8fcb266d10be4945a4fe25
      https://github.com/pgjdbc/pgjdbc/commit/b2eaefef1787b8ab0b8fcb266d10be4945a4fe25
  Author: Adrien <[email protected]>
  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()