Hi,
In the mongo wire protocol I see there is a field requestID which is the identifier for the packet. How is this requestID 32 bit value generated? Will this value be re-used in a later (but unrelated) packet?
Thank you!
Hi,
In the mongo wire protocol I see there is a field requestID which is the identifier for the packet. How is this requestID 32 bit value generated? Will this value be re-used in a later (but unrelated) packet?
Thank you!
Hey @Kartik_Pattaswamy1 ,
Though it’s typically just an auto-incremented integer there aren’t really any requirements as to its generation. Since currently only a single operation can occur per connection the requestID
generated by the client will just be reflected in the responseTo
from the server.
A requestID
wouldn’t be reused for any purpose other than a client being restarted and the value generation being reset.
Topic | Replies | Views | Activity |
---|---|---|---|
Help with Mongo Driver in C#, facet not mapping regex filtered dataset | 0 | 538 | Apr 2024 |
MongoDB ODBC 1.4.2 Unicode Driver doesn’t respond on local machine | 5 | 778 | May 2024 |
CRUD operation fails with Bson Serialization Exception | 3 | 253 | Jan 15 |
C# driver class mapping: map a string member to a nested mongodb field | 0 | 32 | Jan 31 |
Go Driver 2 Insert ObjectId but become binary in DB | 3 | 123 | Mar 1 |