File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
driver-core/src/main/com/mongodb
driver-legacy/src/main/com/mongodb Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1818
1919import com .mongodb .connection .ClusterSettings ;
2020import com .mongodb .connection .ConnectionPoolSettings ;
21+ import com .mongodb .connection .SocketSettings ;
2122import com .mongodb .diagnostics .logging .Logger ;
2223import com .mongodb .diagnostics .logging .Loggers ;
2324import com .mongodb .internal .dns .DefaultDnsResolver ;
121122 * <li>{@code tlsAllowInvalidHostnames=true|false}: Whether to allow invalid host names for TLS connections. Supersedes the
122123 * sslInvalidHostNameAllowed option</li>
123124 * <li>{@code connectTimeoutMS=ms}: How long a connection can take to be opened before timing out.</li>
124- * <li>{@code socketTimeoutMS=ms}: How long a send or receive on a socket can take before timing out.</li>
125+ * <li>{@code socketTimeoutMS=ms}: How long a receive on a socket can take before timing out.
126+ * This option is the same as {@link SocketSettings#getReadTimeout(TimeUnit)}.</li>
125127 * <li>{@code maxIdleTimeMS=ms}: Maximum idle time of a pooled connection. A connection that exceeds this limit will be closed</li>
126128 * <li>{@code maxLifeTimeMS=ms}: Maximum life time of a pooled connection. A connection that exceeds this limit will be closed</li>
127129 * </ul>
Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ public int getConnectTimeout() {
281281 }
282282
283283 /**
284- * <p>The socket timeout in milliseconds. It is used for I/O socket read and write operations {@link
284+ * <p>The socket timeout in milliseconds. It is used for I/O socket read operations {@link
285285 * java.net.Socket#setSoTimeout(int)}</p>
286286 *
287287 * <p>Default is 0 and means no timeout.</p>
Original file line number Diff line number Diff line change 100100 * <li>{@code tlsAllowInvalidHostnames=true|false}: Whether to allow invalid host names for TLS connections. Supersedes the
101101 * sslInvalidHostNameAllowed option</li>
102102 * <li>{@code connectTimeoutMS=ms}: How long a connection can take to be opened before timing out.</li>
103- * <li>{@code socketTimeoutMS=ms}: How long a send or receive on a socket can take before timing out.</li>
103+ * <li>{@code socketTimeoutMS=ms}: How long a receive on a socket can take before timing out.
104+ * This option is the same as {@link MongoClientOptions#getSocketTimeout()}.</li>
104105 * <li>{@code maxIdleTimeMS=ms}: Maximum idle time of a pooled connection. A connection that exceeds this limit will be closed</li>
105106 * <li>{@code maxLifeTimeMS=ms}: Maximum life time of a pooled connection. A connection that exceeds this limit will be closed</li>
106107 * </ul>
You can’t perform that action at this time.
0 commit comments