micronaut-core
micronaut-core copied to clipboard
DefaultHttpClient logs DefaultHttp2PingFrame warning
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
Same here
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
Still an issue with micronaut-core:4.3.6 (micronaut-parent:4.3.2)