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

Avoid double-counting of flow controlled length of synthesised data frames #114

Merged

Conversation

Lukasa
Copy link
Contributor

@Lukasa Lukasa commented May 10, 2019

Motivation:

When synthesising data frames we try to emit the flow controlled length of the entire real
data frame on the first synthetic frame. This allows us to correctly police the window management
of that frame, while still synthesising frames.

However, @glbrntt spotted that we were incorrectly repeatedly counting the flow controlled length
of a partial frame. A patch that had been previously added to ensure we only counted it once was
not working correctly.

Modifications:

  • Adjusted the location of the call to flowControlledLength.

Result:

Correct accounting of flow controlled length

…rames.

Motivation:

When synthesising data frames we try to emit the flow controlled length of the entire real
data frame on the first synthetic frame. This allows us to correctly police the window management
of that frame, while still synthesising frames.

However, @glbrntt spotted that we were incorrectly repeatedly counting the flow controlled length
of a partial frame. A patch that had been previously added to ensure we only counted it once was
not working correctly.

Modifications:

- Adjusted the location of the call to flowControlledLength.

Result:

Correct accounting of flow controlled length
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label May 10, 2019
@Lukasa Lukasa added this to the 1.2.1 milestone May 10, 2019
@Lukasa Lukasa requested a review from weissi May 10, 2019 15:52
Copy link
Member

@weissi weissi 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 to me!

@Lukasa Lukasa merged commit 6a97259 into apple:master May 10, 2019
@Lukasa Lukasa deleted the cb-correct-counting-of-flow-controlled-size branch May 10, 2019 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants