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

Santiago Orcajo edited comment on CXF-8282 at 5/15/20, 8:04 AM:
----------------------------------------------------------------

Hi [~reta],

I am using async invocations as you suspect. I want to use a reactive client so 
I have tried the invocation above:
{code:java}
        final Mono<ResponseObject> response = Mono.create(sink -> 
client.operationAsync(request,
                ReactorAsyncHandler.into(sink)));
{code}
On this way, the request is sent correctly and I can see how the server side 
returns the message. The problem occurs when the server does not return any 
response message in the read timeout.

Thank you.

Best regards,

Santiago

 


was (Author: sanorcdel):
Hi [~reta],

I am using async invocations as you suspect. I want to use a reactive client so 
I have tried the invocation above:
{code:java}
        final Mono<ResponseObject> response = Mono.create(sink -> 
client.operationAsync(request,
                ReactorAsyncHandler.into(sink)));
{code}
On this way, the request is sent correctly and I can see how the server side 
returns the message. The problem is in the case when the server does not return 
any response message in the read timeout.

Thank you.

Best regards,

Santiago

 

> Set read timeout using netty client
> -----------------------------------
>
>                 Key: CXF-8282
>                 URL: https://issues.apache.org/jira/browse/CXF-8282
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 3.3.6
>            Reporter: Santiago Orcajo
>            Priority: Major
>              Labels: cxf, jax-ws,, netty, timeout
>
> Hi,
> I am using cxf-rt-transports-http-netty-client (3.3.6) in order to set a 
> client generated by jaxws using the Netty configuration. I want to set a read 
> timeout in my client configuration because the server's response time is 
> ocasionally too long.
> Connection timeout and Receive timeout are correctly set in the 
> NettyHttpConduit but it looks like the read timeout can not be set. 
> My client configuration is set as follows:
>  
> {code:java}
> Object client = (new JaxWsProxyFactoryBean()).create();
> final Client clientProxy = ClientProxy.getClient(client);
> final HTTPConduit httpConduit = (HTTPConduit) clientProxy.getConduit();
> final HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();             
> httpClientPolicy.setAsyncExecuteTimeout(connectTimeout.toMillis());
> httpClientPolicy.setConnectionTimeout(connectTimeout.toMillis());
> httpClientPolicy.setReceiveTimeout(readTimeout.toMillis());
> httpConduit.setClient(httpClientPolicy);
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to