Skip to content

Commit

Permalink
[Misc] add timeout value
Browse files Browse the repository at this point in the history
Summary: add timeout value for

Test Plan: CI pipeline

Reviewed-by: kuaiwei.kw, lvfei.lv

Issue: #170
Signed-off-by: sendaoYan <[email protected]>
  • Loading branch information
sendaoYan committed Nov 3, 2023
1 parent 62bc318 commit 92d0936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/jdk/sun/net/www/http/HttpClient/B8209178.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ public void test(HttpServer server /*, HttpClient.Version version*/) throws IOEx
private void callHttpsServerThroughProxy(URI uri, Proxy p) throws IOException {
HttpsURLConnection urlConnection = (HttpsURLConnection) uri.toURL().openConnection(p);

urlConnection.setConnectTimeout(1000);
urlConnection.setReadTimeout(3000);
urlConnection.setConnectTimeout(10000);
urlConnection.setReadTimeout(30000);
urlConnection.setDoInput(true);
urlConnection.setDoOutput(true);
urlConnection.setRequestMethod("POST");
Expand Down

0 comments on commit 92d0936

Please sign in to comment.