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

Throttle in-memory buffer stream to not block event queue #55

Merged
merged 6 commits into from
Jun 3, 2015

Conversation

robertdimarco
Copy link
Contributor

@tamalsaha @drtriumph For review. This is a temporary workaround fixing the call stack overflow while maintaining the same in-memory buffer behavior.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 5.48% when pulling cf76b44 on rd-throttle-buffer-stream into d02ef11 on master.

if (this.buffers.length > 0) {
this.push(this.buffers.pop());
} else {
this.push(null);
}
var this_ = this;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: this_ -> self ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, see next

@cbraynor
Copy link
Contributor

cbraynor commented Jun 3, 2015

LGTM

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 5.48% when pulling ba682e0 on rd-throttle-buffer-stream into d02ef11 on master.

cbraynor pushed a commit that referenced this pull request Jun 3, 2015
Throttle in-memory buffer stream to not block event queue
@cbraynor cbraynor merged commit a48db2c into master Jun 3, 2015
@cbraynor cbraynor deleted the rd-throttle-buffer-stream branch June 3, 2015 21:08
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.

None yet

4 participants