Commit 2f3b7e7
committed
fix: don't let a hanging
Puppeteer 25 can hang `page.close()` indefinitely when the page's
navigation was aborted (e.g. on a navigation timeout), and the request
cleanup awaited it without any guard, blocking the crawler forever.
Bound it with a 5s timeout.page.close() block the request cleanup1 parent 4b0c394 commit 2f3b7e7
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
462 | 464 | | |
463 | 465 | | |
464 | 466 | | |
465 | | - | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
466 | 473 | | |
467 | 474 | | |
468 | 475 | | |
| |||
0 commit comments