Open
Description
The PR #2937 that has been merged into the netty5 branch is not operational (only in netty5 branch).
It needs to be completed with another PR, and for the moment, the HttpServerTests.testIssue2927_H2C
and HttpServerTests.testIssue2927
tests are disabled (in netty5 branch).
The problem in netty5 is that when the HeaderListSizeException is thrown, then:
- First, the HttpClientOperations.onInboundClose() is invoked -> here, no unprocessedOutboundError, so the PrematureCloseException is logged without the root cause exception.
- And right after, the ChannelOperations.onError(Throwable t) method is called .. but this too late, because the HttpClientOperations.onInboundClose() method has already logged the PrematureCloseExeption without the HeaderListSizeException root cause exception.
Expected Behavior
HttpServerTests.testIssue2927_H2C and HttpServerTests.testIssue2927 are not passing in netty5 branch, and they are currently disabled.
Actual Behavior
The HttpClientOperations.onInboundClose() is invoked before the ChannelOperations.onError(Throwable t) , so we log the PrematureCloseException without the HeaderListSizeException root cause exception