question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Blaze Http2 Support Is Bugged

See original GitHub issue

Opening per a conversation w/ @ChristopherDavenport

Created a server like so:

http2Server = BlazeServerBuilder[IO](ExecutionContext.global)
          .bindHttp(serviceConfig.http2Port, "0.0.0.0")
          .withHttpApp(app)
          .withSslContext(context)
          .enableHttp2(true)
          .resource

When sent Http2 requests, it seems to be going into the Http1 stages:

[blaze-selector-4] INFO o.h.b.c.n.NIO1SocketServerGroup - Accepted connection from /192.168.80.1:60278
[blaze-selector-4] TRACE o.h.b.c.n.NIO1HeadStage - NIOHeadStage received a read request of size -1
[blaze-selector-4] TRACE o.h.b.p.s.SSLStage - 1120579140: sslHandshake completed in 97200ns
[blaze-selector-4] TRACE o.h.b.p.s.SSLStage - SSL Handshake Status after wrap: Status = OK HandshakeStatus = FINISHED
bytesConsumed = 0 bytesProduced = 88 sequenceNumber = 0
[blaze-selector-4] TRACE o.h.b.c.n.NIO1HeadStage - NIO1HeadStage Write Request: List(java.nio.HeapByteBuffer[pos=0 lim=88 cap=88])
[blaze-selector-4] TRACE o.h.b.p.s.SSLStage - 1120579140: sslHandshake completed in 754600ns
[blaze-selector-4] TRACE o.h.b.p.s.SSLStage - Submitting backed up ops: List(DelayedWrite([Ljava.nio.ByteBuffer;@6d2c5421,Future(<not completed>)))
[blaze-selector-4] TRACE o.h.b.c.n.NIO1HeadStage - NIO1HeadStage Write Request: List()
[blaze-selector-4] TRACE o.h.s.b.Http1ServerStage - Http4sStage starting up
[blaze-selector-4] DEBUG o.h.b.h.h.s.ALPNServerSelector - Shutting down.
[blaze-selector-4] DEBUG o.h.b.p.s.SSLStage - Stage SSLStage sending inbound command: Connected
[blaze-selector-4] DEBUG o.h.s.b.Http1ServerStage - Starting HTTP pipeline
[blaze-selector-4] DEBUG o.h.b.IdleTimeoutStage - Starting idle timeout stage with timeout of 60000 ms
[blaze-selector-4] TRACE o.h.b.p.s.SSLStage - 1120579140: continueWrite completed in 265700ns
[blaze-selector-4] TRACE o.h.b.p.s.SSLStage - 1120579140: sslHandshake completed in 373700ns
[blaze-selector-4] DEBUG o.h.b.p.s.SSLStage - SSL Read Request Status: Status = OK HandshakeStatus = NOT_HANDSHAKING
bytesConsumed = 96 bytesProduced = 58, java.nio.HeapByteBuffer[pos=58 lim=16709 cap=16709]
[blaze-selector-4] DEBUG o.h.b.p.s.SSLStage - SSL Read Request Status: Status = BUFFER_UNDERFLOW HandshakeStatus = NOT_HANDSHAKING
bytesConsumed = 0 bytesProduced = 0, java.nio.HeapByteBuffer[pos=0 lim=16709 cap=16709]
[blaze-selector-4] TRACE o.h.s.b.Http1ServerStage - Received Request:
PRI * HTTP/2.0\r\n
\r\n
SM\r\n
\r\n

[blaze-selector-4] DEBUG o.h.s.b.Http1ServerStage - Bad Request: Error parsing status or headers in requestLoop()
org.http4s.blaze.http.parser.BaseExceptions$BadMessage: Bad HTTP version: HTTP/2.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
etspacemancommented, Apr 26, 2021

Yep, I saw that. My use-case runs on JDK11 today so we are good there 😄

1reaction
etspacemancommented, Apr 26, 2021

Wohoo! Thanks for the fix @vasilmkd

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apr 2021 - http4s/http4s - Gitter
I'm trying to implement http2 support on a blaze server of mine and am running into issues. I am creating the server as...
Read more >
59847 – Support HTTP/2 protocol
My server has supported HTTP2, and I can get http/2 response header with firefox ... Bug 59955 has been marked as a duplicate...
Read more >
12-7 Title Re:blaze bugged in pvp and therefore unusable
The Re:Blaze title normally gives 3 seperate buffs, but for some weeks (Months?) the buff "When Attacked, 7% chance to summon Blazing Armor, ......
Read more >
Tumblr Blaze FAQ – Help Center
A: Tumblr Blaze is a way to promote and increase the reach of your posts. We will show it as a Tumblr Sponsored...
Read more >
Problem with slideshow on "The Blaze" website | Firefox Support ...
Problem with slideshow on "The Blaze" website. 6 replies; 1 has this problem ... https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found