if (layeringStrategy != null) {
iosession = layeringStrategy.layer(iosession);
}
}
OperatedAsyncClientConnection conn = new DefaultAsyncClientConnection(
"http-outgoing-" + entry.getId(),
iosession,
createHttpResponseFactory(),
createByteBufferAllocator(),
params);
iosession.setAttribute(ExecutionContext.HTTP_CONNECTION, conn);
if (proxy == null) {
tracker.connectTarget(conn.getIOSession() instanceof SSLIOSession);
} else {
tracker.connectProxy(proxy, false);
}
}