Technoboy- opened a new pull request #11085:
URL: https://github.com/apache/pulsar/pull/11085


   ### Motivation
   
   Some user networks may have a layer of socks5 proxy, so the client side is 
added socks5 proxy handler to support socks5 protocal.
   
   ### Modifications
   
   Add Socks5ProxyHandler in ConnectionPool as the first handler for producer 
and consumer.
   
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it **add** or upgrade a dependency): (yes, add)
     - The public API: (yes)
     - The schema: (no)
     - The default values of configurations: (yes)
     - The wire protocol: (no)
     - The rest endpoints: ( no)
     - The admin cli options: (no)
     - Anything that affects deployment: (no)
   
   ### Documentation
   
     - Does this pull request introduce a new feature? (yes)
   
   ### How to use
   
   ```java
         PulsarClient
                   .builder()
                   .serviceUrl("pulsar://service-url:6650")
                   .socks5ProxyAddress(new InetSocketAddress("localhost", 
11080)) // change to proxy host and port
                   .socks5ProxyUsername("username")  // If there is a username 
and password
                   .socks5ProxyPassword("password")  
                   .build()
   ```
   


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


Reply via email to