Commit 5348bf7
committed
fix(browser): raise protocolTimeout to 10min for heavy pages
Heavy pages (e.g. dev bundles >100MB) cannot ack `Network.enable` and
other auto-attached CDP domain calls within puppeteer's default 180s.
Once the timeout fires, puppeteer marks the connection dead and every
subsequent call throws `Network.enable timed out` — only daemon
restart recovers.
Set `protocolTimeout: 600000` on both `puppeteer.connect()` and
`puppeteer.launch()`. Env-overridable via
`CHROME_DEVTOOLS_PROTOCOL_TIMEOUT_MS` for power users.
Hit in real workloads against a Brightcove Studio dev bundle (~160MB
JS) where the default timeout fired before `list_pages` could complete,
leaving the daemon permanently wedged.1 parent faac61d commit 5348bf7
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
23 | 34 | | |
24 | 35 | | |
25 | 36 | | |
| |||
61 | 72 | | |
62 | 73 | | |
63 | 74 | | |
| 75 | + | |
64 | 76 | | |
65 | 77 | | |
66 | 78 | | |
| |||
228 | 240 | | |
229 | 241 | | |
230 | 242 | | |
| 243 | + | |
231 | 244 | | |
232 | 245 | | |
233 | 246 | | |
| |||
0 commit comments