RFR: 8301306: java/net/httpclient/* fail with -Xcomp: java.io.IOException: HTTP/1.1 header parser received no bytes [v2]

Alan Bateman alanb at openjdk.org
Thu Feb 2 12:32:26 UTC 2023


On Thu, 2 Feb 2023 12:07:50 GMT, SUN Guoyun <duke at openjdk.org> wrote:

>> Hi all,
>> I think `BackgroundCompilation` should not be set to false when `-Xcomp` be used, which causes the java thread to block for longer, then causing the following tests failed frequently on the AArch64 and LoongArch64 architecture.
>> 
>> java/net/httpclient/ByteArrayPublishers.java (fastdebug -Xcomp)
>> java/net/httpclient/ManyRequestsLegacy.java (fastdebug -Xcomp)
>> java/net/httpclient/HttpClientLocalAddrTest.java (fastdebug -Xcomp)
>> jdk/incubator/concurrent/StructuredTaskScope/StructuredTaskScopeTest.java (fastdebug -Xcomp)
>> java/rmi/server/UnicastRemoteObject/serialFilter/FilterUROTest.java (release -Xcomp)
>> 
>> This PR delete BackgroundCompilation be setted, Above tests can be passed. Please help review it.
>> 
>> Thanks.
>
> SUN Guoyun has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8301306: java/net/httpclient/* fail with -Xcomp

test/jdk/java/net/vthread/HttpALot.java line 38:

> 36:  *     -Dsun.net.httpserver.nodelay=true
> 37:  *     -Dsun.net.client.defaultConnectTimeout=5000
> 38:  *     -Dsun.net.client.defaultReadTimeout=50000

For this one, it might be simpler to just drop the setting of the defaultReadTimeout.

-------------

PR: https://git.openjdk.org/jdk/pull/12282


More information about the net-dev mailing list