cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bence Takács (JIRA) <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-5957) Async transport does not seem to apply connection/thread settings
Date Mon, 18 Aug 2014 08:06:19 GMT

    [ https://issues.apache.org/jira/browse/CXF-5957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14100410#comment-14100410
] 

Bence Takács edited comment on CXF-5957 at 8/18/14 8:05 AM:
------------------------------------------------------------

Working code:
{code}
<cxfcore:bus bus="asyncbus">
  <cxfcore:properties>
    <entry key="org.apache.cxf.transport.http.async.usePolicy"
value="ALWAYS" />
    <entry key="org.apache.cxf.transport.http.async.ioThreadCount" 				value="2" />
    <entry key="org.apache.cxf.transport.http.async.MAX_PER_HOST_CONNECTIONS" value="5"
/>
  </cxfcore:properties>
</cxfcore:bus>
<jaxws:client id="client" bus="asyncbus"
		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" />
  </jaxws:properties>
</jaxws:client>
{code}


was (Author: bence.takacs):
Working code:
{code}
<cxfcore:bus bus="asyncbus">
  <cxfcore:properties>
    <entry key="org.apache.cxf.transport.http.async.usePolicy"
value="ALWAYS" />
    <entry key="org.apache.cxf.transport.http.async.ioThreadCount" 				value="2" />
    <entry key="org.apache.cxf.transport.http.async.MAX_PER_HOST_CONNECTIONS" value="5"
/>
  </cxfcore:properties>
</cxfcore:bus>
<jaxws:client id="client" bus="asyncbus"
		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" />
    </jaxws:properties>
  </jaxws:client>
{code}

> Async transport does not seem to apply connection/thread settings
> -----------------------------------------------------------------
>
>                 Key: CXF-5957
>                 URL: https://issues.apache.org/jira/browse/CXF-5957
>             Project: CXF
>          Issue Type: Wish
>          Components: Transports
>    Affects Versions: 3.0.1
>         Environment: Spring + TestNG + CXF + HttpAsyncClient
>            Reporter: Bence Takács
>            Priority: Minor
>              Labels: connection-pooling, httpasync, non-blocking
>             Fix For: Invalid
>
>
> The concurrent connection settings seems not to work. 
> Upon using the following settings:
> {code}
> 	<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>
> {code}
> 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



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message