Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added xml config

...

Code Block
package org.apache.geode.cache.client.proxy;

public class SniSocketFactory implements SocketFactory {
  public SniSocketFactory(String hostname, int port) {
  ...
}
 
public class ProxySocketFactories {
   public static SocketFactory sni(String hostname, int port)  
}


XML Support


We will also add support for the new SocketFactory option in XML. The SocketFactory can be added using the standard mechanism for declaring classes in Geode's XML - implementing declarable and passing in a provided set of properties

Code Block
<pool>  <socket-factory>   <class-name>com.company.app.CustomSocketFactory</class-name>
   <parameter name="proxyHost">
     <string>proxy.company.com</string>
   </parameter>  </socket-factory>
</pool>


Performance Impact

Connecting through a proxy may impact the performance of client/server messaging, but it is up to the user to decide if they want to use this feature or not. SNI proxies do require the use of TLS, which also adds overhead.

...