changeset 47553:7a4b85711089

8181612: More stable connection processing Reviewed-by: chegar, coffeys, ahgross, joehw, rhalade
author prappo
date Wed, 26 Jul 2017 17:44:06 +0100
parents f9e03aef3a49
children 4fc2a4a29f3d
files src/java.base/share/classes/sun/net/ftp/impl/FtpClient.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/sun/net/ftp/impl/FtpClient.java	Thu Jul 13 20:41:59 2017 +0000
+++ b/src/java.base/share/classes/sun/net/ftp/impl/FtpClient.java	Wed Jul 26 17:44:06 2017 +0100
@@ -115,8 +115,8 @@
                 new PrivilegedAction<Object>() {
 
                     public Object run() {
-                        vals[0] = Integer.getInteger("sun.net.client.defaultReadTimeout", 0).intValue();
-                        vals[1] = Integer.getInteger("sun.net.client.defaultConnectTimeout", 0).intValue();
+                        vals[0] = Integer.getInteger("sun.net.client.defaultReadTimeout", 300_000).intValue();
+                        vals[1] = Integer.getInteger("sun.net.client.defaultConnectTimeout", 300_000).intValue();
                         encs[0] = System.getProperty("file.encoding", "ISO8859_1");
                         return null;
                     }