# HG changeset patch # User prappo # Date 1501087446 -3600 # Node ID 7a4b85711089d56104e8b7880f8103b1c229123b # Parent f9e03aef3a49e8f40ce21cde02d9769a2ecad39a 8181612: More stable connection processing Reviewed-by: chegar, coffeys, ahgross, joehw, rhalade diff -r f9e03aef3a49 -r 7a4b85711089 src/java.base/share/classes/sun/net/ftp/impl/FtpClient.java --- 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() { 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; }