changeset 17402:70e3540a7096

8181612: More stable connection processing Reviewed-by: chegar, coffeys, ahgross, joehw, rhalade
author prappo
date Wed, 26 Jul 2017 17:44:06 +0100
parents b9f23a590684
children 9e9e398e4ecc
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	Sun Jul 23 10:33:13 2017 +0530
+++ 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;
                     }