[GODRIVER-2529] Return error if a ClientEncryption is used after Close Created: 21/Aug/22  Updated: 22/Aug/22

Status: Backlog
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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.

 


Generated at Thu Feb 08 08:38:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.