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.
- is related to
-
GODRIVER-3332 Returning ErrClientDisconnected when sessionPool is null is unecessary
- Closed