Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB - fix isMaster message length check. #166

Merged
merged 1 commit into from
Sep 14, 2018

Conversation

parkanzky
Copy link
Contributor

@parkanzky parkanzky commented Sep 14, 2018

Updated message length to account for OP_REPLY header.

Also fixed off-by-one uint32 read buffer size, but I don't think that would have broken anything.

How to Test

Connect to host which responds to isMaster OP_QUERY with a reply which is longer than mongodb message header + 4 but less than that + OP_REPLY header.

Needs to account for OP_REPLY header
Copy link
Contributor

@justinbastress justinbastress left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@justinbastress justinbastress merged commit 412aefa into master Sep 14, 2018
@justinbastress justinbastress deleted the paul/mongodb-fix-index-err branch September 14, 2018 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants