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

refactor: use duplexify within StreamProxy #197

Merged
merged 2 commits into from
Mar 9, 2018
Merged

refactor: use duplexify within StreamProxy #197

merged 2 commits into from
Mar 9, 2018

Conversation

callmehiphop
Copy link
Contributor

I ran into an issue where I wasn't able to apply flow control to a stream because the StreamProxy class wouldn't wait for the underlying stream to finish writing data.

Once I looked closer at the StreamProxy class I noticed we could simplify it by leveraging Duplexify.

}
this.setWritable(stream);
}
if (this._isCancelCalled) {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

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.

3 participants