が に設定されている場合、何らかの理由HttpAsyncClient
でリクエストを行っていません。このバグを見つけましたが、何が欠けているのかわかりませんでした。setConnectionManagerShared
true
これが私が新しいクライアントを作成する方法です
def apply(proxy: Option[HttpHost], cookieStore: Option[CookieStore]) = {
val builder = HttpAsyncClients.custom.
setConnectionManager(connManager).
setConnectionManagerShared(true).
setDefaultCredentialsProvider(credentialsProvider).
setDefaultRequestConfig(defaultRequestConfig).
setSSLStrategy(sslStrategy)
proxy.map(builder.setProxy)
builder.setDefaultCookieStore(cookieStore.getOrElse(new BasicCookieStore)) // Use custom cookie store if necessary.
// Create an HttpClient with the given custom dependencies and configuration.
val client: HttpAsyncClient = new HttpAsyncClient(builder.build)
client
}
完全なクラスはここにあります。
何を変更すればよいですか?