[
https://issues.apache.org/jira/browse/CXF-9109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
shpelda updated CXF-9109:
-------------------------
Description:
After migration from 3.4.4 to 4.1.0, one of my tests started crashing.
In v3, AsyncHTTPConduitFactory used shared ConnectionManager, so that bus-level
properties
_org.apache.cxf.transport.http.async.MAX_CONNECTIONS_ and
_org.apache.cxf.transport.http.async.MAX_PER_HOST_CONNECTIONS_
worked across clients.
This properties were the reason why I used the AsyncHTTPConduitFactory, as i
have to limit count of created connections.
v3 implementation of AsyncHTTPConduitFactory rewrited shared instance of client
and connectionManager, which finally caused above properties to work properly.
hc5.AsyncHTTPConduitFactory(correctly) maintains cache of
httpclientPolicy->httpClient.
However _PoolingAsyncClientConnectionManager_ must not created with each
client, but must be shared. Otherwise connection pool does not work correctly.
was:
After migration from 3.4.4 to 4.1.0, one of my tests started crashing.
In v3, AsyncHTTPConduitFactory used shared ConnectionManager, so that bus-level
properties
_org.apache.cxf.transport.http.async.MAX_CONNECTIONS_ and
_org.apache.cxf.transport.http.async.MAX_PER_HOST_CONNECTIONS_
worked across clients.
This properties were the reason why I used the AsyncHTTPConduitFactory, as i
have to limit count of created connections.
v3 implementation of AsyncHTTPConduitFactory rewrited shared instance of client
and connectionManager, which finally caused above properties to work properly.
hc5.AsyncHTTPConduitFactory(correctly) maintains caceh of
httpclientPolicy->httpClient.
However_PoolingAsyncClientConnectionManager connectionManager_ must not created
with each client, but shared. Otherwise connection pool does not work correctly.
> ConnectionManager is client specific
> ------------------------------------
>
> Key: CXF-9109
> URL: https://issues.apache.org/jira/browse/CXF-9109
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 4.1.0
> Reporter: shpelda
> Priority: Major
>
> After migration from 3.4.4 to 4.1.0, one of my tests started crashing.
> In v3, AsyncHTTPConduitFactory used shared ConnectionManager, so that
> bus-level properties
> _org.apache.cxf.transport.http.async.MAX_CONNECTIONS_ and
> _org.apache.cxf.transport.http.async.MAX_PER_HOST_CONNECTIONS_
> worked across clients.
> This properties were the reason why I used the AsyncHTTPConduitFactory, as i
> have to limit count of created connections.
>
> v3 implementation of AsyncHTTPConduitFactory rewrited shared instance of
> client and connectionManager, which finally caused above properties to work
> properly.
> hc5.AsyncHTTPConduitFactory(correctly) maintains cache of
> httpclientPolicy->httpClient.
> However _PoolingAsyncClientConnectionManager_ must not created with each
> client, but must be shared. Otherwise connection pool does not work correctly.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)