From cedbbebc681a32667f6ad05b65788ab71bc744d8 Mon Sep 17 00:00:00 2001 From: ctlove0523 <478309639@qq.com> Date: Thu, 5 Dec 2024 14:56:29 +0800 Subject: [PATCH] Update H2ClientHeartbeatHandler.java --- .../netty/http/client/H2ClientHeartbeatHandler.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reactor-netty-http/src/main/java/reactor/netty/http/client/H2ClientHeartbeatHandler.java b/reactor-netty-http/src/main/java/reactor/netty/http/client/H2ClientHeartbeatHandler.java index ec5c8e945..5acecbd9b 100644 --- a/reactor-netty-http/src/main/java/reactor/netty/http/client/H2ClientHeartbeatHandler.java +++ b/reactor-netty-http/src/main/java/reactor/netty/http/client/H2ClientHeartbeatHandler.java @@ -31,6 +31,13 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicLong; +/** + * This is handler periodically sending a PING frame to the HTTP2 server. When the PING frame not acknowledged after + * max times,this handler will close the connection.User can config the interval between PING frames,the timeout in for + * a PING frame to be acknowledged and the maximum PING frame not acknowledged before close connection. + * @author chentong + * @since 1.2.1 + */ public class H2ClientHeartbeatHandler extends SimpleChannelInboundHandler { private static final Logger log = Loggers.getLogger(Http3Codec.class);