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

2020-04-24 Thread Chris Hegarty
> On 24 Apr 2020, at 16:14, Daniel Fuchs wrote: > > Hi Chris, > > On 23/04/2020 19:36, Chris Hegarty wrote: >> How do you feel about adding a byte-at-a-time final scenario? >> static final List REQ5_RESPONSE_BODY = List.of( >> "B", " ", "\r", "\n", >> "L", "o", "r", "e", "m", "

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

2020-04-24 Thread Daniel Fuchs
Hi Chris, On 23/04/2020 19:36, Chris Hegarty wrote: How do you feel about adding a byte-at-a-time final scenario? static final List REQ5_RESPONSE_BODY = List.of( "B", " ", "\r", "\n", "L", "o", "r", "e", "m", " ", "i", "p", "s", "u", "m", "\r" ,"\n", "0", ";", " ", "\

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

2020-04-24 Thread Daniel Fuchs
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 h

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

2020-04-23 Thread Alan Bateman
On 23/04/2020 19:36, Chris Hegarty wrote: : Wow, that’s a test and then some ;-) 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 bette

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

2020-04-23 Thread Chris Hegarty
> On 23 Apr 2020, at 15:39, Daniel Fuchs wrote: > > Hi, > > Please find below a fix for: > > 8243246: HTTP Client sometimes gets java.io.IOException -> Invalid > chunk header byte 32 > https://bugs.openjdk.java.net/browse/JDK-8243246 > > webrev:

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

2020-04-23 Thread Daniel Fuchs
Hi, Please find below a fix for: 8243246: HTTP Client sometimes gets java.io.IOException -> Invalid chunk header byte 32 https://bugs.openjdk.java.net/browse/JDK-8243246 webrev: http://cr.openjdk.java.net/~dfuchs/webrev_8243246/webrev.00/ Some websites add extraneous white sp