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

Don't call TCPConnection backpressure notifies incorrectly #1904

Merged
merged 1 commit into from
May 12, 2017

Conversation

SeanTAllen
Copy link
Member

It's possible under rare circumstances to call throttled and
unthrottled on a TCPConnectionNotify at the incorrect time. This
happens because we were not explicitly tracking whether our connection
was throttled or not.

If you were to be running without one shot enabled (unlikely now), this
code would spuriously call unthrottled. With this change, we no longer
have to worry that some other change might inadvertently start calling
throttled or unthrottled incorrectly.

It's possible under rare circumstances to call `throttled` and
`unthrottled` on a `TCPConnectionNotify` at the incorrect time. This
happens because we were not explicitly tracking whether our connection
was throttled or not.

If you were to be running without one shot enabled (unlikely now), this
code would spuriously call `unthrottled`. With this change, we no longer
have to worry that some other change might inadvertently start calling
`throttled` or `unthrottled` incorrectly.
@SeanTAllen SeanTAllen added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label May 12, 2017
Copy link
Member

@jemc jemc left a comment

Choose a reason for hiding this comment

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

Hooray for state!

@jemc jemc merged commit 5562aea into master May 12, 2017
@jemc jemc deleted the correct-backpressure branch May 12, 2017 20:23
ponylang-main added a commit that referenced this pull request May 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants