mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8181612: More stable connection processing
Reviewed-by: chegar, coffeys, ahgross, joehw, rhalade
This commit is contained in:
parent
b3f1165f7d
commit
05331dc72f
1 changed files with 2 additions and 2 deletions
|
@ -115,8 +115,8 @@ public class FtpClient extends sun.net.ftp.FtpClient {
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue