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