You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/03/01 04:26:07 UTC

[GitHub] [rocketmq] rushsky518 commented on issue #1764: Optimize RemotingHelper#parseSocketAddressAddr

rushsky518 commented on issue #1764: Optimize RemotingHelper#parseSocketAddressAddr
URL: https://github.com/apache/rocketmq/pull/1764#issuecomment-593052187
 
 
   @xujianhai666
   when `producer.setNamesrvAddr("localhost:9876")`
   ````java
   // org.apache.rocketmq.remoting.netty.NettyRemotingClient.NettyConnectManageHandler#connect
   final String local = localAddress == null ? "UNKNOWN" : RemotingHelper.parseSocketAddressAddr(localAddress);
   final String remote = remoteAddress == null ? "UNKNOWN" : RemotingHelper.parseSocketAddressAddr(remoteAddress);
   log.info("NETTY CLIENT PIPELINE: CONNECT  {} => {}", local, remote);
   ````
   `remote` is 'ocalhost/127.0.0.1:9876'

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services