You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Yaniv Nahoum (JIRA)" <ji...@apache.org> on 2017/02/16 11:56:42 UTC
[jira] [Created] (CXF-7251) Connection timeouts set as ints are
disregarded
Yaniv Nahoum created CXF-7251:
---------------------------------
Summary: Connection timeouts set as ints are disregarded
Key: CXF-7251
URL: https://issues.apache.org/jira/browse/CXF-7251
Project: CXF
Issue Type: Bug
Components: JAX-RS
Affects Versions: 3.0.6
Reporter: Yaniv Nahoum
Fix For: 3.0.13
Given the following client creation:
Client client = ClientBuilder.newBuilder()
.property("http.connection.timeout", 1000)
.property("http.receive.timeout", 5000)
.build();
the timeout properties will be disregarded since they will be autoboxed as Integer, and the implementation expects Long only.
See org.apache.cxf.jaxrs.client.spec.ClientImpl.WebTargetImpl#setConnectionProperties.
Workaround:
Client client = ClientBuilder.newBuilder()
.property("http.connection.timeout", 1000L)
.property("http.receive.timeout", 5000L)
.build();
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)