Commit b4819db
committed
worker: add option to track unmanaged file descriptors
Add a public option for Workers which adds tracking for raw
file descriptors, as currently, those resources are not cleaned
up, unlike e.g. `FileHandle`s.
PR-URL: #34303
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>1 parent 3e21dd9 commit b4819dbCopy full SHA for b4819db
File tree
Expand file treeCollapse file tree
5 files changed
+89
-3
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal
- src
- test/parallel
Expand file treeCollapse file tree
5 files changed
+89
-3
lines changedOpen diff view settings
Collapse file
+12Lines changed: 12 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
561 | 561 | |
562 | 562 | |
563 | 563 | |
| 564 | + |
| 565 | + |
| 566 | + |
| 567 | + |
564 | 568 | |
565 | 569 | |
566 | 570 | |
| ||
612 | 616 | |
613 | 617 | |
614 | 618 | |
| 619 | + |
| 620 | + |
| 621 | + |
| 622 | + |
| 623 | + |
| 624 | + |
615 | 625 | |
616 | 626 | |
617 | 627 | |
| ||
816 | 826 | |
817 | 827 | |
818 | 828 | |
| 829 | + |
| 830 | + |
819 | 831 | |
820 | 832 | |
821 | 833 | |
|
Collapse file
+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
149 | 149 | |
150 | 150 | |
151 | 151 | |
152 | | - |
| 152 | + |
| 153 | + |
153 | 154 | |
154 | 155 | |
155 | 156 | |
|
Collapse file
+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
313 | 313 | |
314 | 314 | |
315 | 315 | |
316 | | - |
| 316 | + |
317 | 317 | |
318 | 318 | |
319 | 319 | |
| ||
460 | 460 | |
461 | 461 | |
462 | 462 | |
463 | | - |
464 | 463 | |
465 | 464 | |
466 | 465 | |
| ||
586 | 585 | |
587 | 586 | |
588 | 587 | |
| 588 | + |
| 589 | + |
| 590 | + |
| 591 | + |
589 | 592 | |
590 | 593 | |
591 | 594 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
116 | 116 | |
117 | 117 | |
118 | 118 | |
| 119 | + |
119 | 120 | |
120 | 121 | |
121 | 122 | |
|
Collapse file
test/parallel/test-worker-track-unmanaged-fds.js
Copy file name to clipboard+69Lines changed: 69 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 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
0 commit comments