Commit bc9f629
http_parser: do not dealloc during kOnExecute
`freeParser` deallocates `Parser` instances early if they do not fit
into the free list. This does not play well with recent socket
consumption change, because it will try to deallocate the parser while
executing on its stack.
Regression was introduced in: 1bc4468
Fix: #2928
PR-URL: #2956
Reviewed-by: Trevor Norris <trev.norris@gmail.com>1 parent f7edbab commit bc9f629Copy full SHA for bc9f629
File tree
Expand file treeCollapse file tree
2 files changed
+75
-1
lines changedOpen diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
2 files changed
+75
-1
lines changedOpen diff view settings
Collapse file
+24-1Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
366 | 366 | |
367 | 367 | |
368 | 368 | |
369 | | - |
| 369 | + |
| 370 | + |
| 371 | + |
370 | 372 | |
371 | 373 | |
372 | 374 | |
| ||
504 | 506 | |
505 | 507 | |
506 | 508 | |
| 509 | + |
| 510 | + |
| 511 | + |
| 512 | + |
| 513 | + |
| 514 | + |
| 515 | + |
| 516 | + |
| 517 | + |
| 518 | + |
| 519 | + |
| 520 | + |
| 521 | + |
| 522 | + |
| 523 | + |
| 524 | + |
507 | 525 | |
508 | 526 | |
509 | 527 | |
| ||
540 | 558 | |
541 | 559 | |
542 | 560 | |
| 561 | + |
| 562 | + |
543 | 563 | |
544 | 564 | |
545 | 565 | |
| ||
668 | 688 | |
669 | 689 | |
670 | 690 | |
| 691 | + |
671 | 692 | |
| 693 | + |
| 694 | + |
672 | 695 | |
673 | 696 | |
674 | 697 | |
|
Collapse file
test/parallel/test-http-regr-gh-2928.js
Copy file name to clipboard+51Lines changed: 51 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 | + |
0 commit comments