[pgjdbc/pgjdbc] b2eaef: Ensure isValid() will not last more thantimeout s...
[pgjdbc/pgjdbc] b2eaef: Ensure isValid() will not last more thantimeout s...
От:
Adrien <noreply@github.com>
Дата:
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()