Commit 0c73221
tls: do not rely on 'drain' handlers in StreamWrap
`'drain'` event handlers may not be invoked if the stream
is currently finishing. Instead, use the fact that we know
when writes are active or not, and invoke the delayed shutdown
handler from our own after-write callback.
PR-URL: #24290
Refs: #24288
Refs: #24075
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com>1 parent 21843c7 commit 0c73221Copy full SHA for 0c73221
File tree
Expand file treeCollapse file tree
1 file changed
+11
-2
lines changedOpen diff view settings
Filter options
- lib/internal
Expand file treeCollapse file tree
1 file changed
+11
-2
lines changedOpen diff view settings
Collapse file
lib/internal/wrap_js_stream.js
Copy file name to clipboardExpand all lines: lib/internal/wrap_js_stream.js+11-2Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
| 14 | + |
14 | 15 | |
15 | 16 | |
16 | 17 | |
| ||
79 | 80 | |
80 | 81 | |
81 | 82 | |
| 83 | + |
82 | 84 | |
83 | 85 | |
84 | 86 | |
| ||
115 | 117 | |
116 | 118 | |
117 | 119 | |
118 | | - |
119 | | - |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
120 | 124 | |
121 | 125 | |
122 | 126 | |
| ||
189 | 193 | |
190 | 194 | |
191 | 195 | |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
192 | 201 | |
193 | 202 | |
194 | 203 | |
|
0 commit comments