zrlw commented on code in PR #15529:
URL: https://github.com/apache/dubbo/pull/15529#discussion_r2191859077


##########
dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/TriplePingPongHandler.java:
##########
@@ -29,21 +30,28 @@ public class TriplePingPongHandler extends 
ChannelDuplexHandler {
 
     private final long pingAckTimeout;
 
-    private ScheduledFuture<?> pingAckTimeoutFuture;
+    private final AtomicReference<ScheduledFuture<?>> pingAckTimeoutFutureRef 
= new AtomicReference<>();

Review Comment:
   do you mean there is no scenario that two threads are running 
Http3ClientFrameCodec#channelRead (Triple Ping Headers frame) and 
TriplePingPongHandler#channelRead (HTTP/2 ping frame) concurrently?
   i don't know how to trigger HTTP/2 ping frame, could you test it?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to