-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
What problem are you facing?
When serverApi is defined on a MongoClient the driver MUST send its initial message in the OpMsg format. (Relevant Spec). The Driver continues to rely on the absence of server information here that will always return false for shouldUseOpMsg.
What driver and relevant dependency versions are you using?
5.x
Steps to reproduce?
Add serverApi to a MongoClient construction, observe message sent via packet sniffing or debugging the driver.
When fixed, likely we can unit test this with a fakeSocket of some kind to verify the opCode written to the network is 2013 (op_msg)
- duplicates
-
NODE-3689 Require hello command for connection handshake to use OP_MSG, disallowing OP_QUERY
- Closed