Skip to content
Permalink
Browse files

feat: make connectTimeout=10 (seconds) by default

Previously connectTimeout was 0, so it could just hang in case of network issues.
  • Loading branch information
vlsi committed Jul 13, 2016
1 parent f6b176e commit b4d5976a14bfacb3969e95c12dd39f293206e627
Showing with 1 addition and 1 deletion.
  1. +1 −1 pgjdbc/src/main/java/org/postgresql/PGProperty.java
@@ -240,7 +240,7 @@
* <p>
* 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

0 comments on commit b4d5976

Please sign in to comment.
You can’t perform that action at this time.