Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2529

Return error if a ClientEncryption is used after Close

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.0.0
    • Affects Version/s: None
    • Component/s: None
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Scope

      • Return an error if a ClientEncryption is used after Close.

      Background & Motivation
      Currently, calling a method on ClientEncryption after calling Close may result in a difficult to diagnose crash.

      This is due to ClientEncryption.Close frees data structures in libmongocrypt.

      For precedence, the ErrClientDisconnected error is intended to be returned by Client methods after Disconnect.

       

            Assignee:
            joy.wang@mongodb.com Joy Wang
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: