Commit 137aa5c
http2: fix client async storage persistence
Create and store an AsyncResource for each stream, following a similar
approach as used in HttpAgent.
Fixes: #55376
PR-URL: #55460
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>1 parent 56c46ab commit 137aa5cCopy full SHA for 137aa5c
File tree
Expand file treeCollapse file tree
2 files changed
+66
-2
lines changedOpen diff view settings
Filter options
- lib/internal/http2
- test/parallel
Expand file treeCollapse file tree
2 files changed
+66
-2
lines changedOpen diff view settings
Collapse file
+11-2Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
60 | 60 | |
61 | 61 | |
62 | 62 | |
| 63 | + |
| 64 | + |
63 | 65 | |
64 | 66 | |
65 | 67 | |
| ||
241 | 243 | |
242 | 244 | |
243 | 245 | |
| 246 | + |
244 | 247 | |
245 | 248 | |
246 | 249 | |
| ||
408 | 411 | |
409 | 412 | |
410 | 413 | |
411 | | - |
| 414 | + |
| 415 | + |
| 416 | + |
| 417 | + |
| 418 | + |
412 | 419 | |
413 | 420 | |
414 | 421 | |
| ||
1797 | 1804 | |
1798 | 1805 | |
1799 | 1806 | |
| 1807 | + |
| 1808 | + |
1800 | 1809 | |
1801 | 1810 | |
1802 | 1811 | |
| ||
1819 | 1828 | |
1820 | 1829 | |
1821 | 1830 | |
1822 | | - |
| 1831 | + |
1823 | 1832 | |
1824 | 1833 | |
1825 | 1834 | |
|
Collapse file
test/parallel/test-http2-async-local-storage.js
Copy file name to clipboard+55Lines changed: 55 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 | + |
0 commit comments