return new DefaultNHttpServerConnection(session, requestFactory, allocator, params);
}
public NHttpServerIOTarget createConnection(final IOSession session) {
SSLContext sslcontext = this.sslcontext != null ? this.sslcontext : getDefaultSSLContext();
SSLIOSession ssliosession = new SSLIOSession(session, SSLMode.SERVER, sslcontext, this.sslHandler);
session.setAttribute(SSLIOSession.SESSION_KEY, ssliosession);
NHttpServerIOTarget conn = createConnection(
ssliosession, this.requestFactory, this.allocator, this.params);
int timeout = HttpConnectionParams.getSoTimeout(this.params);
conn.setSocketTimeout(timeout);