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

AbstractConduitSelector reused cached conduit even if protocol was changed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.6
    • Core
    • None
    • Unknown

    Description

      Hi,

      Actually AbstractConduitSelector.getSelectedConduit() creates and caches conduit in selectedConduit variable. Cached conduit is reused by the next calls.

      I see the following problem: if user changed protocol in URI between calls, AbstractConduitSelector still uses cached Conduit even it cannot process new URL. In my case cached HTTP consuit tries to process UDP URL.

      Proposal for fix: check if protocol in URL was changed and if yes, close and reset selectedConduit.

      Patch is attached.

      Regards,
      Andrei.

      Attachments

        1. AbstractConduitSelector.patch
          9 kB
          Andrei Shakirin

        Activity

          People

            dkulp Daniel Kulp
            ashakirin Andrei Shakirin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: