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

Connection timeouts set as ints are disregarded

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.6
    • 3.0.13, 3.1.11, 3.2.0
    • JAX-RS
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment