Commit 4c6bfbd
http: fix client response close & aborted
Fixes: #20102
Fixes: #20101
Fixes: #1735
- Response should always emit close.
- Response should always emit aborted if aborted.
- Response should always emit close after request has emitted close.
PR-URL: #20075
Fixes: #17352
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>1 parent 30aceed commit 4c6bfbdCopy full SHA for 4c6bfbd
File tree
Expand file treeCollapse file tree
2 files changed
+69
-41
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+69
-41
lines changedOpen diff view settings
Collapse file
+23-16Lines changed: 23 additions & 16 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
328 | 328 | |
329 | 329 | |
330 | 330 | |
331 | | - |
332 | | - |
| 331 | + |
| 332 | + |
| 333 | + |
333 | 334 | |
334 | | - |
335 | | - |
336 | | - |
| 335 | + |
| 336 | + |
| 337 | + |
337 | 338 | |
338 | | - |
339 | | - |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
340 | 346 | |
341 | | - |
342 | | - |
343 | | - |
344 | | - |
345 | | - |
346 | | - |
347 | | - |
348 | | - |
| 347 | + |
| 348 | + |
| 349 | + |
| 350 | + |
| 351 | + |
| 352 | + |
| 353 | + |
| 354 | + |
| 355 | + |
| 356 | + |
349 | 357 | |
350 | | - |
351 | 358 | |
352 | 359 | |
353 | 360 | |
|
Collapse file
test/parallel/test-http-response-close.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-response-close.js+46-25Lines changed: 46 additions & 25 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
23 | 23 | |
24 | 24 | |
25 | 25 | |
26 | | - |
27 | | - |
28 | | - |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
29 | 50 | |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
0 commit comments