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

ClusterBuilder.RegisterStreamFactory causes infinite recursion

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 2.7.3
    • None
    • Connectivity
    • 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

            dmitry.lukyanov@mongodb.com Dmitry Lukyanov (Inactive)
            Alex Skalozub Alex Skalozub
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: