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

WarmResumeManager Unittests + Bugfix #816

Merged
merged 1 commit into from
Oct 31, 2017

Conversation

somasun
Copy link

@somasun somasun commented Oct 28, 2017

When a large frame (larger than the cache size) was received, the firstSentPosition wasn't reset appropriately. Fix it.

Add a suite of unittests.

if (frameDataLength > capacity_) {
resetUpToPosition(lastSentPosition_);
lastSentPosition_ += frameDataLength;
firstSentPosition_ += frameDataLength;
DCHECK(firstSentPosition_ == lastSentPosition_);
Copy link
Contributor

Choose a reason for hiding this comment

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

This and line below should be DCHECK_EQ.

@@ -71,6 +71,10 @@ class WarmResumeManager : public ResumeManager {
LOG(FATAL) << "Not Implemented for Warm Resumption";
}

size_t size() {
Copy link
Contributor

Choose a reason for hiding this comment

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

size_t size() const {?

@somasun somasun merged commit 2cda24b into rsocket:master Oct 31, 2017
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