You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2017/04/13 07:33:41 UTC

[jira] [Resolved] (HTTPCLIENT-1838) HttpClient leaves connection in CLOSE_WAIT in a multithreaded environment

     [ 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org