Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5957

Async transport does not seem to apply connection/thread settings

    XMLWordPrintableJSON

Details

    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            bence.takacs Bence Takács
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: