You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the while code is wrong, instead of while (m_bytesRead - bytes_read < sectionLength) {
it should probably be while (m_bytesRead - bytes_read < msglen) {
or instead make the variable bytes_read (which has a bad name) start after all the flags, since that is what sectionLength calculates.
Feel free to try out that while loop instead and see if that fixes it.
If you open a PR, please also rename bytes_read, it's a bad variable name (it should be something like packet_start_index or similar, since it's a snapshot of where we were before reading anything from the packet to see if we read everything)
The sectionLength will most likely be obsolete and can be removed.
Any ideas on how can I fix this issue? It looks like it is a Driver problem:
throws:
mongo db logs:
The text was updated successfully, but these errors were encountered: