Details
-
Wish
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
3.0.1
-
Spring + TestNG + CXF + HttpAsyncClient
-
Moderate
Description
The concurrent connection settings seems not to work.
Upon using the following settings:
<jaxws:client id="client" serviceClass="my.sample.SampleWebService" address="http://localhost:8080/sample-ws-cxf/SampleWebService"> <jaxws:properties> <entry key="javax.xml.ws.client.connectionTimeout" value="10" /> <entry key="javax.xml.ws.client.receiveTimeout" value="11000" /> <entry key="org.apache.cxf.transport.http.async.usePolicy" value="ALWAYS" /> <entry key="org.apache.cxf.transport.http.async.ioThreadCount" value="1" /> <entry key="org.apache.cxf.transport.http.async.MAX_HOST_CONNECTIONS" value="1" /> <entry key="org.apache.cxf.transport.http.async.MAX_PER_HOST_CONNECTIONS" value="1" /> </jaxws:properties> </jaxws:client>
I submits 100 requests and see all of them arrives on the server side immediately (in 250ms) without waiting for even the first response.
For me this means 100 concurrent requests/connections opposing the MAX_HOST_CONNECTIONS/MAX_PER_HOST_CONNECTIONS = 1.
Additionally I see 5 separate callback threads on client side (default-workqueue-1 to default-workqueue-5) but the ioThreadCount=1.
Is it a bug or I mistyped something?
Or this is the expected behaviour and then I misuderstood the settings written in this document: http://cxf.apache.org/docs/asynchronous-client-http-transport.html