8274561: sun/net/ftp/TestFtpTimeValue.java timed out on slow machines

Reviewed-by: jiefu, dfuchs
This commit is contained in:
Ao Qi 2021-10-01 08:52:04 +00:00 committed by Jie Fu
parent 5e4b514e6e
commit b7b78ff1f3

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -116,7 +116,7 @@ public class TestFtpTimeValue {
public void handleClient(Socket client) throws IOException {
String str;
client.setSoTimeout(2000);
client.setSoTimeout(10000);
BufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream()));
PrintWriter out = new PrintWriter(client.getOutputStream(), true);
out.println("220 FTP serverSocket is ready.");