// for an incoming request, we need to see if the request is coming in on
// an SSLSocket. If this is using a secure connection, then we register the
// request and SSLSession with the session manager.
ServerRequestInfoExt riExt = (ServerRequestInfoExt) ri;
TransportInfo_impl connection = (TransportInfo_impl)riExt.getTransportInfo();
if (connection != null) {
Socket socket = connection.socket();
if (socket != null && socket instanceof SSLSocket) {
if (log.isDebugEnabled()) log.debug("Found SSL Session");
SSLSocket sslSocket = (SSLSocket) socket;
SSLSessionManager.setSSLSession(ri.request_id(), sslSocket.getSession());