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

[doc] Setting SSLSocketFactory on TLSClientParameters switches from async to sync HTTP

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.6
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
    • Estimated Complexity:
      Unknown

      Description

      The fix for CXF-5071 introduced a check in AsyncHTTPConduit.setupConnection()

              if (uri.getScheme().equals("https") 
                  && clientParameters != null
                  && clientParameters.getSSLSocketFactory() != null) {
                  //if they configured in an SSLSocketFactory, we cannot do anything
                  //with it as the NIO based transport cannot use socket created from
                  //the SSLSocketFactory.
                  o = false;
              }
      

      that makes CXF switch from an asynchronous to a synchronous HTTP transport if the TLSClientParameters used sets an SSLSocketFactory.

      This behaviour is undocumented and has caused confusion among customers. Can we get this please documented on page
      http://cxf.apache.org/docs/asynchronous-client-http-transport.html

      Thanks,
      Torsten

        Attachments

          Activity

            People

            • Assignee:
              ffang Freeman Yue Fang
              Reporter:
              tmielke Torsten Mielke
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: