From f1d6bdc6a5711bc083670ff1d32296d6e3ed15da Mon Sep 17 00:00:00 2001 From: Connor Clark Date: Mon, 12 Nov 2018 17:27:41 -0800 Subject: [PATCH] core: increase protocol timeout to 30s (#6531) --- lighthouse-core/gather/driver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lighthouse-core/gather/driver.js b/lighthouse-core/gather/driver.js index d181c490135e..01decbb6a676 100644 --- a/lighthouse-core/gather/driver.js +++ b/lighthouse-core/gather/driver.js @@ -26,11 +26,11 @@ const Connection = require('./connections/connection.js'); // Controls how long to wait after onLoad before continuing const DEFAULT_PAUSE_AFTER_LOAD = 0; // Controls how long to wait between network requests before determining the network is quiet -const DEFAULT_NETWORK_QUIET_THRESHOLD = 10000; +const DEFAULT_NETWORK_QUIET_THRESHOLD = 5000; // Controls how long to wait between longtasks before determining the CPU is idle, off by default const DEFAULT_CPU_QUIET_THRESHOLD = 0; // Controls how long to wait for a response after sending a DevTools protocol command. -const DEFAULT_PROTOCOL_TIMEOUT = 5000; +const DEFAULT_PROTOCOL_TIMEOUT = 30000; /** * @typedef {LH.Protocol.StrictEventEmitter} CrdpEventEmitter