Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2457

ClusterBuilder.RegisterStreamFactory causes infinite recursion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.3
    • Component/s: Connectivity
    • Labels:
      None

      Description

      The problem is, _streamFactoryWrapper captures reference to itself, instead of the previous value of _streamFactoryWrapper. 

      It can be easily fixed by replacing

      _streamFactoryWrapper = inner => wrapper(_streamFactoryWrapper(inner));

      with

      _streamFactoryWrapper = inner => wrapper(_streamFactoryWrapper(inner));

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: