Skip to content

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