You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2017/02/16 14:55:41 UTC
[jira] [Resolved] (CXF-7251) Connection timeouts set as ints are
disregarded
[ https://issues.apache.org/jira/browse/CXF-7251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-7251.
-----------------------------------
Resolution: Fixed
Assignee: Sergey Beryozkin
Fix Version/s: 3.1.11
3.2.0
> 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
> Assignee: Sergey Beryozkin
> Fix For: 3.2.0, 3.0.13, 3.1.11
>
>
> 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)