poorbarcode commented on code in PR #24423:
URL: https://github.com/apache/pulsar/pull/24423#discussion_r2374016732


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java:
##########
@@ -438,11 +452,56 @@ public void channelInactive(ChannelHandlerContext ctx) 
throws Exception {
         }
     }
 
+    private void checkPauseReceivingRequestsAfterResumeRateLimit(BaseCommand 
cmd) {
+        if (rateLimitingSecondsAfterResumeFromUnreadable <= 0 || cmd.getType() 
== BaseCommand.Type.PONG

Review Comment:
   Improved
   
   BTW, the `requestRateLimiter` will skip to limit requests if 
`!pulsarChannelPauseReceivingRequestsIfUnwritable || 
rateLimitingSecondsAfterResumeFromUnreadable <= 0`, this place is a repeated 
check



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to