8243246: HTTP Client sometimes gets java.io.IOException -> Invalid chunk header byte 32

Daniel Fuchs daniel.fuchs at oracle.com
Fri Apr 24 08:34:27 UTC 2020


Hi Alan,

On 24/04/2020 07:09, Alan Bateman wrote:
> It looks like there are >3000 lines of embedded data, is a reason why 
> these responses can't be loaded from data files? Some of these could be 
> text blocks too of course but they are really long and might be better 
> as data files.

I originally had them as data files and converted them to List
of strings in the code.
The crucial issue is that this data needs CRLF at the right
places and I don't trust that they might not get changed to plain
LF at some point if kept in files (+ I dislike data file ;-) ).

I'd rather keep them as list of strings in the code.
You might have noticed (or not) that I took some care to
ensure that chunk headers would be on their own single
line which makes it easier to see the structure of the
chunked response.

I could probably remove (or shorten) the bigger ones if
that's an issue - but is that an issue?

best regards,

-- daniel


More information about the net-dev mailing list