We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0da01d1 commit be5a807Copy full SHA for be5a807
1 file changed
src/main/com/mongodb/MongoOptions.java
@@ -34,7 +34,7 @@ public void reset(){
34
connectionsPerHost = Bytes.CONNECTIONS_PER_HOST;
35
threadsAllowedToBlockForConnectionMultiplier = 5;
36
maxWaitTime = 1000 * 60 * 2;
37
- connectTimeout = 0;
+ connectTimeout = 1000 * 10;
38
socketTimeout = 0;
39
socketKeepAlive = false;
40
autoConnectRetry = false;
@@ -118,9 +118,9 @@ else if (safe)
118
public int maxWaitTime;
119
120
/**
121
- * The connection timeout in milliseconds.
+ * The connection timeout in milliseconds. A value of 0 means no timeout.
122
* It is used solely when establishing a new connection {@link java.net.Socket#connect(java.net.SocketAddress, int) }
123
- * Default is 0 and means no timeout.
+ * Default is 10,000.
124
*/
125
public int connectTimeout;
126
0 commit comments