This repository was archived by the owner on Aug 11, 2022. It is now read-only.
Commit 94cb05e
add-remote-tarball: work around node 0.8 http back-pressure bug
0.8 http streams have a bug, where if they're paused with data in
their buffers when the socket closes, they call `end` before emptying
those buffers, which results in the entire pipeline ending and thus
the point that applied backpressure never being able to trigger a
`resume`.
We work around this by piping into a pass through stream that has
unlimited buffering. The pass through stream is from readable-stream
and is thus a current streams3 implementation that is free of these
bugs even on 0.8.
PR-URL: #10903
Credit: @iarna1 parent 6541690 commit 94cb05e
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
109 | 119 | | |
110 | 120 | | |
0 commit comments