From b4d5976a14bfacb3969e95c12dd39f293206e627 Mon Sep 17 00:00:00 2001 From: Vladimir Sitnikov Date: Wed, 13 Jul 2016 22:16:20 +0300 Subject: [PATCH] feat: make connectTimeout=10 (seconds) by default Previously connectTimeout was 0, so it could just hang in case of network issues. --- pgjdbc/src/main/java/org/postgresql/PGProperty.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgjdbc/src/main/java/org/postgresql/PGProperty.java b/pgjdbc/src/main/java/org/postgresql/PGProperty.java index c9b21bcec5..708bef0744 100644 --- a/pgjdbc/src/main/java/org/postgresql/PGProperty.java +++ b/pgjdbc/src/main/java/org/postgresql/PGProperty.java @@ -240,7 +240,7 @@ public enum PGProperty { *

* The timeout is specified in seconds and a value of zero means that it is disabled. */ - CONNECT_TIMEOUT("connectTimeout", "0", "The timeout value used for socket connect operations."), + CONNECT_TIMEOUT("connectTimeout", "10", "The timeout value used for socket connect operations."), /** * The timeout value used for socket read operations. If reading from the server takes longer than