changeset 12767:5ba537ff11e7

8181612: More stable connection processing Reviewed-by: chegar, coffeys, ahgross, joehw, rhalade
author prappo
date Wed, 26 Jul 2017 17:51:24 +0100
parents 9ddd7155a71f
children 2708c967948c
files src/share/classes/sun/net/ftp/impl/FtpClient.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/net/ftp/impl/FtpClient.java	Tue Jul 25 14:18:04 2017 +0100
+++ b/src/share/classes/sun/net/ftp/impl/FtpClient.java	Wed Jul 26 17:51:24 2017 +0100
@@ -116,8 +116,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;
                     }