mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-23 14:19:56 +00:00
8274561: sun/net/ftp/TestFtpTimeValue.java timed out on slow machines
Reviewed-by: jiefu, dfuchs
This commit is contained in:
parent
5e4b514e6e
commit
b7b78ff1f3
@ -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.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user