ffang opened a new pull request, #3725: URL: https://github.com/apache/cxf/pull/3725
AsyncHTTPConduitFactory shares one hc5 client between the conduits with the same HTTPClientPolicy instance, but closing any of these conduits shut the client down. The calls in flight on the other conduits then hung, or failed after the receive timeout, and their later calls failed, as they kept using the client. A conduit shut the client down also when it had not used it, and each time it was closed. Count the conduits using a client, and shut it down when the last one releases it, as HttpClientHTTPConduit does for a shared HttpClient. A conduit releases the client it got once, on close(), and only if the policy still maps to that client: after update() has replaced the clients, a conduit that got one before does not release the new one. setupNIOClient() holds a reference for the client it creates, so that it stays open until the factory is shut down. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
