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

client message internal buffer created with correct size for decode #99

Merged

Conversation

asimarslan
Copy link
Contributor

@asimarslan asimarslan commented Feb 2, 2017

@asimarslan asimarslan added the Type: Enhancement Code enhancement. label Feb 2, 2017
@asimarslan asimarslan added this to the 3.8 milestone Feb 2, 2017
@devOpsHazelcast
Copy link
Contributor

Test PASSed.

}
frameLength = frameLength > 0 ? frameLength : GetFrameLength();
Accumulate(source, frameLength - Index());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we also copy the first IntSizeInBytes bytes (the bytes that indicates the frame length) into the Buffer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

above code already handles frame length.

@asimarslan asimarslan merged commit 95cb6d7 into hazelcast:master Feb 14, 2017
@asimarslan asimarslan deleted the feature/master/buffer-resize-fix branch July 11, 2018 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Code enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent buffer resizing when reading ClientMessages
3 participants