Commit 359a659
stream: writableNeedDrain
Don't write to a stream which already has a full buffer.
Fixes: #35341
PR-URL: #35348
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>1 parent 0d74226 commit 359a659Copy full SHA for 359a659
File tree
Expand file treeCollapse file tree
7 files changed
+63
-1
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- internal/streams
- test/parallel
Expand file treeCollapse file tree
7 files changed
+63
-1
lines changedOpen diff view settings
Collapse file
+9Lines changed: 9 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
580 | 580 | |
581 | 581 | |
582 | 582 | |
| 583 | + |
| 584 | + |
| 585 | + |
| 586 | + |
| 587 | + |
| 588 | + |
| 589 | + |
| 590 | + |
| 591 | + |
583 | 592 | |
584 | 593 | |
585 | 594 | |
|
Collapse file
+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
660 | 660 | |
661 | 661 | |
662 | 662 | |
| 663 | + |
| 664 | + |
| 665 | + |
| 666 | + |
| 667 | + |
663 | 668 | |
664 | 669 | |
665 | 670 | |
|
Collapse file
lib/internal/streams/duplex.js
Copy file name to clipboardExpand all lines: lib/internal/streams/duplex.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
87 | 87 | |
88 | 88 | |
89 | 89 | |
| 90 | + |
| 91 | + |
90 | 92 | |
91 | 93 | |
92 | 94 | |
|
Collapse file
lib/internal/streams/pipeline.js
Copy file name to clipboardExpand all lines: lib/internal/streams/pipeline.js+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
123 | 123 | |
124 | 124 | |
125 | 125 | |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
126 | 130 | |
127 | 131 | |
128 | 132 | |
|
Collapse file
lib/internal/streams/readable.js
Copy file name to clipboardExpand all lines: lib/internal/streams/readable.js+6-1Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
783 | 783 | |
784 | 784 | |
785 | 785 | |
786 | | - |
| 786 | + |
| 787 | + |
| 788 | + |
| 789 | + |
| 790 | + |
| 791 | + |
787 | 792 | |
788 | 793 | |
789 | 794 | |
|
Collapse file
lib/internal/streams/writable.js
Copy file name to clipboardExpand all lines: lib/internal/streams/writable.js+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
805 | 805 | |
806 | 806 | |
807 | 807 | |
| 808 | + |
| 809 | + |
| 810 | + |
| 811 | + |
| 812 | + |
| 813 | + |
| 814 | + |
| 815 | + |
808 | 816 | |
809 | 817 | |
810 | 818 | |
|
Collapse file
test/parallel/test-stream-pipe-needDrain.js
Copy file name to clipboard+29Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
0 commit comments