[
https://issues.apache.org/jira/browse/HTTPCLIENT-1838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Kalnichevski resolved HTTPCLIENT-1838.
-------------------------------------------
Resolution: Cannot Reproduce
Fix Version/s: (was: 4.5.4)
> HttpClient leaves connection in CLOSE_WAIT in a multithreaded environment
> -------------------------------------------------------------------------
>
> Key: HTTPCLIENT-1838
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1838
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient (classic)
> Affects Versions: 4.5.3
> Environment: Centos6.3. Apache HttpClient 4.5.3.
> Reporter: kumaran
> Attachments: CvHttpClientImpl.txt
>
>
> We use HttpClient for all our internal http communications and below the code
> snippet,
> val client: CloseableHttpClient = HttpClients.custom()
> .setConnectionManager(clientConnectionManager)
> .setRetryHandler(httpRequestRetryHandler)
> .setDefaultCredentialsProvider(basicCredentialsProvider)
> .evictExpiredConnections()
> .evictIdleConnections(5, TimeUnit.SECONDS)
> .build()
> Sometimes we could see a connection is created but not used and left in
> CLOSE_WAIT state. we couldnt able to find the exact flow, since it happens
> randomly.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]