freeznet opened a new issue #145: producer cannot connect to broker through 
pulsar proxy
URL: https://github.com/apache/pulsar-client-go/issues/145
 
 
   pulsar-client-go cannot connect to pulsar broker through pulsar proxy, the 
connection failed when send `PRODUCER` command to pulsar proxy, proxy will 
throw `UnsupportedOperationException`, and client got `Short read when reading 
frame size` error.  
   
   After code review, I found out that once client get `LOOKUP` result with 
`ProxyThroughServiceUrl == true`, client should open a new connection to proxy 
with `CONNECT` command and `ProxyToBrokerUrl` be set. Then according to 
https://github.com/apache/pulsar/blob/master/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyConnection.java#L207
 , pulsar proxy will tunnel commands to broker. 
   
   Currently, `pulsar-client-go` ignored `LOOKUP` result if 
`ProxyThroughServiceUrl` is true, then all commands are handled by pulsar proxy 
and not tunneled to broker.

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


With regards,
Apache Git Services

Reply via email to