cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Veit Guna <>
Subject receiveTimeout ignored since 3.1.9?
Date Tue, 03 Jan 2017 17:09:08 GMT

I just upgraded from 3.1.8 to 3.1.9 with the effect, that one of my
tests is failing now regarding the receiveTimeout set on HTTPClientPolicy.
I'm currently using CXF for JAX-RS client side proxy generation based on
my REST server interfaces. I'm also using the "use.async.http.conduit"
to use the async http conduit.

The test is setting the receiveTimeout on the HTTPClientPolicy to 1 (ms)
like this:

JAXRSClientFactoryBean bean = new JAXRSClientFactoryBean();
MyService myService = bean.create(MyService.class);
ClientConfiguration clientConfig = WebClient.getConfig(myService);
clientConfig.getRequestContext().put("use.async.http.conduit", true);

HTTPClientPolicy clientPolicy = clientConfig.getHttpConduit().getClient();

Then it calls a status REST endpoint and expects a ProcessingException
to be thrown. But this is never thrown and the call succeeds.
In the past it failed as expected. I also switched to another endpoint
that takes a bit longer to respond but with the same effect.
Going back to 3.1.8 fixes the issue.

I took a look at the recent changes and found this:

Maybe it is related to it?


View raw message