Skip to content

Commit d080716

Browse files
antbobjerboaa
authored andcommitted
8314164: java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java fails intermittently in timeout
Backport-of: fbaaac63d4ae8d7cc0ec02ab4b5a934824d1fec1
1 parent 038c36c commit d080716

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/jdk/java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -419,7 +419,6 @@ private HttpURLConnection createConnection() throws Exception {
419419

420420
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
421421
connection.setDoOutput(true);
422-
connection.setConnectTimeout(1000);
423422
connection.setReadTimeout(5000);
424423
connection.setUseCaches(false);
425424
connection.setInstanceFollowRedirects(false);

0 commit comments

Comments
 (0)