yx9o commented on code in PR #11550:
URL: https://github.com/apache/rocketmq/pull/11550#discussion_r4657699966
##########
container/src/main/java/org/apache/rocketmq/container/BrokerContainer.java:
##########
@@ -292,6 +301,10 @@ public InnerBrokerController addBroker(ConfigContext
configContext) throws Excep
return null;
}
+ static boolean isValidListenPort(int listenPort) {
+ return listenPort > 0;
Review Comment:
With fast remoting enabled by default, `listenPort=2` passes this check but
binds the VIP listener to an ephemeral port while VIP clients still dial port
0. Could we validate the derived VIP port too?
--
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]