[GitHub] jai1 commented on a change in pull request #1124: Support Pulsar proxy from C++/Python client library

2018-01-31 Thread GitBox
jai1 commented on a change in pull request #1124: Support Pulsar proxy from 
C++/Python client library
URL: https://github.com/apache/incubator-pulsar/pull/1124#discussion_r164559651
 
 

 ##
 File path: pulsar-client-cpp/lib/ClientConnection.cc
 ##
 @@ -114,8 +115,9 @@ ClientConnection::ClientConnection(const std::string& 
endpoint, ExecutorServiceP
   executor_(executor),
   resolver_(executor->createTcpResolver()),
   socket_(executor->createSocket()),
-  address_(endpoint),
-  cnxString_("[ -> " + endpoint + "] "),
+  logicalAddress_(logicalAddress),
+  physicalAddress_(physicalAddress),
+  cnxString_("[ -> " + physicalAddress + "] "),
 
 Review comment:
   Since cnxString_ is used for log purposes only can we change it to
   "[ -> " + physicalAddress + "->" + logicalAddress + "] "


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] jai1 commented on a change in pull request #1124: Support Pulsar proxy from C++/Python client library

2018-01-29 Thread GitBox
jai1 commented on a change in pull request #1124: Support Pulsar proxy from 
C++/Python client library
URL: https://github.com/apache/incubator-pulsar/pull/1124#discussion_r164505677
 
 

 ##
 File path: pulsar-client-cpp/lib/Url.h
 ##
 @@ -41,6 +41,8 @@ class Url {
 const std::string& parameter() const;
 friend std::ostream& operator<<(std::ostream& os, const Url& obj);
 
+std::string hostPort() const;
 
 Review comment:
   How about returning const reference:-
   const std::string& hostPort() const;


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services