cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yaniv Nahoum (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-7251) Connection timeouts set as ints are disregarded
Date Thu, 16 Feb 2017 11:56:42 GMT
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)

Mime
View raw message