cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-7251) Connection timeouts set as ints are disregarded
Date Thu, 16 Feb 2017 14:55:41 GMT

     [ 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)

Mime
View raw message