You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/12/26 09:45:58 UTC

[GitHub] [pulsar-client-go] freeznet opened a new issue #145: producer cannot connect to broker through pulsar proxy

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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar-client-go] wolfstudy closed issue #145: producer cannot connect to broker through pulsar proxy

Posted by GitBox <gi...@apache.org>.
wolfstudy closed issue #145: producer cannot connect to broker through pulsar proxy
URL: https://github.com/apache/pulsar-client-go/issues/145
 
 
   

----------------------------------------------------------------
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