8181612: More stable connection processing
Reviewed-by: chegar, coffeys, ahgross, joehw, rhalade
--- 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;
}