cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yaniv Nahoum (JIRA)" <>
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
             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)
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.
        Client client = ClientBuilder.newBuilder()
                .property("http.connection.timeout", 1000L)
                .property("http.receive.timeout", 5000L)

This message was sent by Atlassian JIRA

View raw message