Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7251

Connection timeouts set as ints are disregarded

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.6
    • Fix Version/s: 3.0.13, 3.1.11, 3.2.0
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      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();

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              yanivnahoum Yaniv Nahoum
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: