File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/java.base/share/classes/java/net Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -621,6 +621,13 @@ public void connect(SocketAddress endpoint) throws IOException {
621
621
* {@code SocketException} with the interrupt status set.
622
622
* </ol>
623
623
*
624
+ * @apiNote Establishing a TCP/IP connection is subject to connect timeout settings
625
+ * in the operating system. The typical operating system timeout is in the range of tens of
626
+ * seconds to minutes. If the operating system timeout expires before the
627
+ * {@code timeout} specified to this method then an {@code IOException} is thrown.
628
+ * The {@code timeout} specified to this method is typically a timeout value that is
629
+ * shorter than the operating system timeout.
630
+ *
624
631
* @param endpoint the {@code SocketAddress}
625
632
* @param timeout the timeout value to be used in milliseconds.
626
633
* @throws IOException if an error occurs during the connection, the socket
You can’t perform that action at this time.
0 commit comments