Skip to content
Discussion options

You must be logged in to vote

In 3.3.6 only the consumer side has this. NettyConnectionClient adds an IdleStateHandler (heartbeat, 60s by default), and TriplePingPongHandler sends an HTTP/2 PING and closes the channel if the ack doesn't come back within the close timeout. On the provider side, NettyPortUnificationServer leaves idle handling to the protocol, but TripleHttp2Protocol never adds an IdleStateHandler, so a half-open connection just stays there.

NettyServerHandler already closes the channel when it gets an IdleStateEvent, so all that's missing is the handler. You can add it by overriding the tri wire protocol:

public class IdleAwareTripleProtocol extends TripleHttp2Protocol {

    @Override
    public void c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tommy-ham
Comment options

Answer selected by tommy-ham
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants