RFR: 8255227: java/net/httpclient/FlowAdapterPublisherTest.java intermittently failing with TestServer: start exception: java.io.IOException: Invalid preface
Daniel Fuchs
dfuchs at openjdk.java.net
Fri Apr 30 10:52:59 UTC 2021
Hi,
I stumbled on an issue in Stream.java where an assert was misplaced, preventing the proper IOException to be triggered. I believe this is what caused the FlowAdapterPublisherTest.java to fail with the "Invalid Preface" error on the server side.
In any case - I haven't observed this error again after tweaking the assert.
I have also updated the server side to print better diagnostic in case the Invalid Preface strikes again in the future...
-------------
Commit messages:
- 8255227: java/net/httpclient/FlowAdapterPublisherTest.java intermittently failing with TestServer: start exception: java.io.IOException: Invalid preface
Changes: https://git.openjdk.java.net/jdk/pull/3813/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3813&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8255227
Stats: 11 lines in 2 files changed: 6 ins; 1 del; 4 mod
Patch: https://git.openjdk.java.net/jdk/pull/3813.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/3813/head:pull/3813
PR: https://git.openjdk.java.net/jdk/pull/3813
More information about the net-dev
mailing list