micronaut-core icon indicating copy to clipboard operation
micronaut-core copied to clipboard

DefaultHttpClient logs DefaultHttp2PingFrame warning

Open waynerijsdijk opened this issue 1 year ago • 4 comments

Expected Behavior

The DefaultHttpClient should not log a warning at every request if the destination server supports http2.

Actual Behaviour

I'm getting a warning log at every request if the destination server supports http2.

[default-nioEventLoopGroup-1-4] WARN i.m.h.client.netty.DefaultHttpClient - Unexpected message on HTTP2 connection channel: DefaultHttp2PingFrame(content=580, ack=false)

I got this warning after upgrading from Micronaut 3.8.9 to 4.2.3.

Steps To Reproduce

Use a declarative client which fires a request to a http2 enabled server

See my attached example application. Just call http://localhost:8080 and see the warn log appear.

Environment Information

  • Operating system: Windows 10, Windows 11 and Ubuntu Linux
  • JDK version: Tested with Java 17 and Java 21

Example Application

https://github.com/waynerijsdijk/micronaut-http2-ping-warning

Version

4.2.3

waynerijsdijk avatar Jan 16 '24 15:01 waynerijsdijk

Same here

oliverkuntze avatar Jan 17 '24 15:01 oliverkuntze

same here, in my case, it's initial request to get oidc specification on url https://accounts.google.com that is causing the issue and log here : https://github.com/micronaut-projects/micronaut-core/blob/4.3.x/http-client/src/main/java/io/micronaut/http/client/netty/ConnectionManager.java#L658

tchiotludo avatar Jan 30 '24 15:01 tchiotludo

Still an issue with micronaut-core:4.3.6 (micronaut-parent:4.3.2)

roar-skinderviken avatar Feb 18 '24 11:02 roar-skinderviken