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 2019/04/05 09:14:00 UTC

[jira] [Resolved] (HTTPCLIENT-1980) HttpClient continues to use connection that was already closed (SocketTimeoutException)

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCLIENT-1980.
-------------------------------------------
    Resolution: Cannot Reproduce

[~dtolstyi] HttpClient does not re-use connections with timed out message exchanges by design because those connections are likely to be in an inconsistent state. It will also treat timeout as a non-recoverable condition and will not automatically re-execute. 

Oleg

> HttpClient continues to use connection that was already closed (SocketTimeoutException)
> ---------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1980
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1980
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient (async)
>    Affects Versions: 4.5.8
>         Environment: Linux
>            Reporter: Dmytro TOLSTYI
>            Priority: Major
>         Attachments: http.zip
>
>
> I'm using HttpClient for long-run activities (several weeks) and often it happens that the connection gets closed and HttpClient still sends requests using it. As a result I'm receiving `java.net.SocketTimeoutException: null`.
>  
> Is there any possibility to manually reopen closed connection?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org