[CXX-2394] Require hello command for connection handshake to use OP_MSG, disallowing OP_QUERY Created: 19/Oct/21  Updated: 28/Oct/23  Resolved: 17/May/23

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.8.0

Type: Improvement Priority: Major - P3
Reporter: PM Bot Assignee: Ezra Chung
Resolution: Fixed Votes: 0
Labels: size-xsmall
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CDRIVER-4193 Require hello command for connection ... Closed
Issue split
Quarter: FY22Q4, FY23Q2
Upstream Changes Summary:

DRIVERS-1916:
This ticket does two things:

  1. It clarifies that if the "hello" command is used (as opposed to "isMaster") it must be sent using OP_MSG
  2. Because the previous version of the spec already required that if a versioned API is specified, "hello" must be used, it is made explicit that this also means OP_MSG must be used.

Drivers must ensure that their connection handshake uses both OP_MSG and "hello" if a versioned API is specified.
For an example of what your connection process should look like after this change, take a look at the Python implementation in the handshake spec.


 Description   

This ticket was split from DRIVERS-1916, please see that ticket for a detailed description.



 Comments   
Comment by Ezra Chung [ 17/May/23 ]

Commit: https://github.com/mongodb/mongo-cxx-driver/commit/b9b8f948663f60cf1027cbc9d22eb9bd6554a587
PR: https://github.com/mongodb/mongo-cxx-driver/pull/962

Generated at Wed Feb 07 22:05:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.