BurningCN commented on a change in pull request #9723:
URL: https://github.com/apache/dubbo/pull/9723#discussion_r815306006
##########
File path:
dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DubboProtocol.java
##########
@@ -253,7 +276,8 @@ private boolean isClientSide(Channel channel) {
// if it's callback service on client side
isStubServiceInvoke =
Boolean.TRUE.toString().equals(inv.getObjectAttachments().get(STUB_EVENT_KEY));
if (isStubServiceInvoke) {
- port = channel.getRemoteAddress().getPort();
+ // The port of the client exposed stub service is 0
+ port = 0;
Review comment:
When the consumer exposes the stub service, the port number is 0
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]