[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16810994#comment-16810994
 ] 

Dmytro TOLSTYI commented on HTTPCLIENT-1980:
--------------------------------------------

Thank you Oleg. Versions you've recommended seem promising for the moment.

I've already saw this error:
{code:java}
org.apache.http.ConnectionClosedException: Connection closed
at 
org.apache.http.nio.protocol.HttpAsyncRequestExecutor.endOfInput(HttpAsyncRequestExecutor.java:345)
 ~[httpcore-nio-4.4.6.jar:4.4.6]
at 
org.apache.http.impl.nio.client.InternalRequestExecutor.endOfInput(InternalRequestExecutor.java:132)
 ~[httpasyncclient-4.1.4.jar:4.1.4]
at 
org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:261)
 ~[httpcore-nio-4.4.6.jar:4.4.6]
at 
org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)
 ~[httpasyncclient-4.1.4.jar:4.1.4]
at 
org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39)
 ~[httpasyncclient-4.1.4.jar:4.1.4]
at 
org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:121)
 ~[httpcore-nio-4.4.6.jar:4.4.6]
at 
org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162) 
~[httpcore-nio-4.4.6.jar:4.4.6]
at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)
 ~[httpcore-nio-4.4.6.jar:4.4.6]
at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
 ~[httpcore-nio-4.4.6.jar:4.4.6]
at 
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
 ~[httpcore-nio-4.4.6.jar:4.4.6]
at 
org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104) 
~[httpcore-nio-4.4.6.jar:4.4.6]
at 
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)
 ~[httpcore-nio-4.4.6.jar:4.4.6]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
{code}
But next request was successful. So, everything is fine for the moment. 
Continuing my tests.

> 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, http2.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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to