Skip to content

Message boundary bug #170

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

Merged
merged 4 commits into from
May 3, 2016
Merged

Conversation

pontusmelke
Copy link
Contributor

When the last byte in the buffer is the next chunk size we should not fetch more data until that byte is also consumed. First commit fixes the actual issue whereas the second two handles other feedback.

  • Do not delegate in the state machine since it might lead to stack overflow errors
  • Better handling in readBytes for large messages

Note that this PR addresses the same issue #169

public void messageSizeFuzzTest() throws IOException
{
int maxSize = 1 << 16;
Random random = new Random(11);
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably not be a fixed seed.

@zhenlineo zhenlineo merged commit 09c0716 into neo4j:1.0 May 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants