Problem which I have is Linux related, as it does not occur when the same HTTP2 client runs from Windows.
$java -jar -Xbootclasspath/p:alpn-boot-8.1.9.v20160720.jar SampleOkHttp-1.0.jar https://192.168.1.10:8080/simple.html
HTTP/2 preface communication:
Windows
>> CONNECTION 505249202a20485454502f322e300d0a0d0a534d0d0a0d0a
>> 0x00000000 6 SETTINGS
>> 0x00000000 4 WINDOW_UPDATE
<< 0x00000000 6 SETTINGS
<< 0x00000000 4 WINDOW_UPDATE
>> 0x00000003 69 HEADERS END_STREAM|END_HEADERS
>> 0x00000000 0 SETTINGS ACK
<< 0x00000000 0 SETTINGS ACK
<< 0x00000003 86 HEADERS END_HEADERS
<< 0x00000003 220 DATA END_STREAM
h2
<< 0x00000000 8 GOAWAY
Linux
>> CONNECTION 505249202a20485454502f322e300d0a0d0a534d0d0a0d0a
>> 0x00000000 6 SETTINGS
>> 0x00000000 4 WINDOW_UPDATE
>> 0x00000003 69 HEADERS END_STREAM|END_HEADERS
<< 0x00000000 6 SETTINGS
>> 0x00000000 0 SETTINGS ACK
<< 0x00000000 8 GOAWAY
<< 0x00000000 4 WINDOW_UPDATE
<< 0x00000000 8 GOAWAY
Tried with Ubuntu\Fedora, from local\remote machine, with different java\alpn versions. I'm still getting GOAWAY. Why Apache in case of Linux sends GOAWAY message? How to fix it?