-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
stream: pipe lazy drain #29095
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
stream: pipe lazy drain #29095
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,11 +52,4 @@ function drain() { | |
|
|
||
| w.end = common.mustCall(); | ||
|
|
||
| // Just for kicks, let's mess with the drain count. | ||
| // This verifies that even if it gets negative in the | ||
| // pipe() cleanup function, we'll still function properly. | ||
| r.on('readable', function() { | ||
| w.emit('drain'); | ||
| }); | ||
|
||
|
|
||
| r.pipe(w); | ||
Uh oh!
There was an error while loading. Please reload this page.