[
https://issues.apache.org/jira/browse/HTTPASYNC-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oleg Kalnichevski resolved HTTPASYNC-130.
-----------------------------------------
Resolution: Not A Problem
Persistent HTTP/1.1 connections can be closed at any time by any endpoint (or a
proxy in-between). This is a normal behavior as far as the HTTP protocol is
concerned. Classic HttpClient can automatically re-try safe or idempotent
requests failing to an I/O error or due to an unexpected connection
termination. Async HttpClient can only do that only as of version 5.0a2. With
HttpAsyncClient 4.x one has to implement request recovery manually.
Oleg
> ConnectionClosed Exception
> --------------------------
>
> Key: HTTPASYNC-130
> URL: https://issues.apache.org/jira/browse/HTTPASYNC-130
> Project: HttpComponents HttpAsyncClient
> Issue Type: Bug
> Affects Versions: 4.1.3
> Reporter: Loganathan
>
> While invoking a server side API using http async library, the below
> exception is thrown:
> at
> org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:134)
> at
> org.apache.http.impl.nio.client.AbstractClientExchangeHandler.failed(AbstractClientExchangeHandler.java:414)
> at
> org.apache.http.nio.protocol.HttpAsyncRequestExecutor.endOfInput(HttpAsyncRequestExecutor.java:321)
> at
> org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:263)
> at
> org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)
> at
> org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39)
> at
> org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:123)
> at
> org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:164)
> at
> org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:339)
> at
> org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:317)
> at
> org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:278)
> at
> org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)
> at
> org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:590)
> at java.lang.Thread.run(Thread.java:745)
> This exception is not consistent with the particular API. It is occurring
> randomly for different API's. At the same time, this exception didn't occur
> while invoking the same API(s) using normal http client.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]