elecharny commented on PR #26:
URL: https://github.com/apache/mina/pull/26#issuecomment-1539039335

   On the test, we use a custom SSLFilter which sets the peer:
   
   ```
           protected SSLEngine createEngine(IoSession session, 
InetSocketAddress addr) {
               //Add your SNI host name and port in the IOSession
               String sniHostNames = (String)session.getAttribute( 
"SNIHostNames" );
               int portNumber = (int)session.getAttribute( "PortNumber");
               InetSocketAddress peer = InetSocketAddress.createUnresolved( 
sniHostNames, portNumber);
               
               SSLEngine sslEngine = (addr != null) ?
                   sslContext.createSSLEngine(peer.getHostString(), 
peer.getPort()) : sslContext.createSSLEngine();
   ...
   ```
   
   The default ```SslFilter.createEngine()``` never get called when 
initializing the  **Connector**. 
   
   It's called only for the **Acceptor**.


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

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to