-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Field Level Encryption
In stateMachine.js we have an async executor function passed to a Promise constructor. We should improve the code here to await an async iterable of on('data') events in order to avoid this usage. If async executor functions are run synchronously, so if they throw it will not be catchable by a .catch().
- is fixed by
-
NODE-5127 Promise returned by libmongocrypt's StateMachine.kmsRequest never resolves when server closes connection without an error
- Closed