You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/11/29 19:47:52 UTC

[commons-net] branch master updated: NET-685: change default connect timeout

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
     new f434fbf  NET-685: change default connect timeout
     new b9d0fcd  Merge pull request #51 from simo385/NET-685-connect-timeout
f434fbf is described below

commit f434fbf8496817d88196f83644dd13add05a2603
Author: Simone <si...@corall.io>
AuthorDate: Tue Jul 21 16:19:48 2020 +0200

    NET-685: change default connect timeout
---
 src/main/java/org/apache/commons/net/SocketClient.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/net/SocketClient.java b/src/main/java/org/apache/commons/net/SocketClient.java
index 6c938b5..d028066 100644
--- a/src/main/java/org/apache/commons/net/SocketClient.java
+++ b/src/main/java/org/apache/commons/net/SocketClient.java
@@ -99,7 +99,7 @@ public abstract class SocketClient
     protected ServerSocketFactory _serverSocketFactory_;
 
     /** The socket's connect timeout (0 = infinite timeout) */
-    private static final int DEFAULT_CONNECT_TIMEOUT = 0;
+    private static final int DEFAULT_CONNECT_TIMEOUT = 60000;
     protected int connectTimeout = DEFAULT_CONNECT_TIMEOUT;
 
     /** Hint for SO_RCVBUF size */