GitHub user 383124397 opened a pull request:
https://github.com/apache/httpasyncclient/pull/6
4.1.2/3
We use httpasyncclient as our core async RPC component, but we found a
recover issue a couple days ago.
the issue is the async client will be stoped because of I/O reactor
shutdown when a service encounter a OOM problem, a few seconds later and after
a FGC process, the service has been recovered, but the async client cannot be
recovered. so the client cannot accept the request unless the service need to
reboot.
the code is:
` @Override
public void run() {
try {
final IOEventDispatch ioEventDispatch = new
InternalIODispatch(handler);
connmgr.execute(ioEventDispatch);
} catch (final Exception ex) {
log.error("I/O reactor terminated abnormally", ex);
} finally {
status.set(Status.STOPPED);
}
}`
or by `close()` method.
so there is no way to set status from STOPPED to ACTIVE even by start().
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apache/httpasyncclient 4.1.x
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/httpasyncclient/pull/6.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #6
commit 7bd0287906b6f5f1c1fb3dc5b01d03afcbaa5e5a
Author: Oleg Kalnichevski
Date: 2015-04-29T09:00:24Z
HttpAsyncClient 4.1 branch
git-svn-id:
https://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/branches/4.1.x@1676692
13f79535-47bb-0310-9956-ffa450edef68
commit 352d9aef4f72917c2da5aad578804e1c2637e0f4
Author: Oleg Kalnichevski
Date: 2015-04-29T09:13:40Z
Fix when systemProperties is true but sslcontext not use systemProperties
git-svn-id:
https://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/branches/4.1.x@1676696
13f79535-47bb-0310-9956-ffa450edef68
commit 4e87570cbc6c4cb79b69730002ec9cfd8af8cd4c
Author: Oleg Kalnichevski
Date: 2015-08-21T13:51:14Z
Upgraded project version to 4.2-alpha1-SNAPSHOT
git-svn-id:
https://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/branches/4.1.x@1696991
13f79535-47bb-0310-9956-ffa450edef68
commit 0ced526f6857cf0487479fa7b6822cff704816ee
Author: Oleg Kalnichevski
Date: 2015-08-21T13:55:29Z
[HTTPASYNC-92] Make sure the osgi bundle imports what it needs, in
particular org.apache.http.ssl
git-svn-id:
https://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/branches/4.1.x@1696994
13f79535-47bb-0310-9956-ffa450edef68
commit 6f479e585a2f2d3c04d80d26ed72c267f173c6ac
Author: Oleg Kalnichevski
Date: 2015-09-09T16:47:26Z
Upgraded HttpCore to version 4.4.3
git-svn-id:
https://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/branches/4.1.x@1702053
13f79535-47bb-0310-9956-ffa450edef68
commit 4d4f7c5f1f448a8af48b96dc4b2910dd33d948b6
Author: Oleg Kalnichevski
Date: 2015-09-15T14:22:36Z
Upgraded HttpClient to version 4.5.1
git-svn-id:
https://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/branches/4.1.x@1703201
13f79535-47bb-0310-9956-ffa450edef68
commit fdfc94f53fef4227a813178a7f29f2a3c3497bd5
Author: Oleg Kalnichevski
Date: 2015-10-28T17:44:47Z
Changed project version to 4.1.1-SNAPSHOT
git-svn-id:
https://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/branches/4.1.x@1711084
13f79535-47bb-0310-9956-ffa450edef68
commit 4b7ec0472ba4cefe7170237f72d9817385255767
Author: Oleg Kalnichevski
Date: 2015-10-30T15:05:38Z
Removed inherently racy test
git-svn-id:
https://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/branches/4.1.x@1711491
13f79535-47bb-0310-9956-ffa450edef68
commit 358ca82b985a2ab1b8083508c6681891a721a960
Author: Oleg Kalnichevski
Date: 2015-10-30T15:06:25Z
Upgraded HttpCore to version 4.4.4
git-svn-id:
https://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/branches/4.1.x@1711493
13f79535-47bb-0310-9956-ffa450edef68
commit f4d0ab164e2b6e35919ec39f3c51faf152741f7d
Author: Oleg Kalnichevski
Date: 2015-10-30T15:18:18Z
Updated release notes for HttpAsyncClient 4.4.1 release
git-svn-id:
https://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/branches/4.1.x@1711494
13f79535-47bb-0310-9956-ffa450edef68
commit 45cef34e3b5665ffb301ee33bbde3e4dbc383a26
Author: Oleg Kalnichevski
Date: 2015-11-06T15:15:30Z
Upgraded HttpAsyncClient version to 4.1.2-SNAPSHOT
git-svn-id: