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 18
18
19
19
import com .mongodb .connection .ClusterSettings ;
20
20
import com .mongodb .connection .ConnectionPoolSettings ;
21
+ import com .mongodb .connection .SocketSettings ;
21
22
import com .mongodb .diagnostics .logging .Logger ;
22
23
import com .mongodb .diagnostics .logging .Loggers ;
23
24
import com .mongodb .internal .dns .DefaultDnsResolver ;
121
122
* <li>{@code tlsAllowInvalidHostnames=true|false}: Whether to allow invalid host names for TLS connections. Supersedes the
122
123
* sslInvalidHostNameAllowed option</li>
123
124
* <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>
125
127
* <li>{@code maxIdleTimeMS=ms}: Maximum idle time of a pooled connection. A connection that exceeds this limit will be closed</li>
126
128
* <li>{@code maxLifeTimeMS=ms}: Maximum life time of a pooled connection. A connection that exceeds this limit will be closed</li>
127
129
* </ul>
Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ public int getConnectTimeout() {
281
281
}
282
282
283
283
/**
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
285
285
* java.net.Socket#setSoTimeout(int)}</p>
286
286
*
287
287
* <p>Default is 0 and means no timeout.</p>
Original file line number Diff line number Diff line change 100
100
* <li>{@code tlsAllowInvalidHostnames=true|false}: Whether to allow invalid host names for TLS connections. Supersedes the
101
101
* sslInvalidHostNameAllowed option</li>
102
102
* <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>
104
105
* <li>{@code maxIdleTimeMS=ms}: Maximum idle time of a pooled connection. A connection that exceeds this limit will be closed</li>
105
106
* <li>{@code maxLifeTimeMS=ms}: Maximum life time of a pooled connection. A connection that exceeds this limit will be closed</li>
106
107
* </ul>
You can’t perform that action at this time.
0 commit comments