Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 b4d5976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgjdbc/src/main/java/org/postgresql/PGProperty.java
Expand Up @@ -240,7 +240,7 @@ public enum PGProperty {
* <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
Expand Down

0 comments on commit b4d5976

Please sign in to comment.