From 18e9b9b8c76746b350c14a6b8b6d34888b1b3b37 Mon Sep 17 00:00:00 2001 From: Connor Clark Date: Fri, 19 Oct 2018 17:10:40 -0700 Subject: [PATCH] getRequestContent 1s --- 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 7b1240f54977..228188010f49 100644 --- a/lighthouse-core/gather/driver.js +++ b/lighthouse-core/gather/driver.js @@ -881,11 +881,11 @@ class Driver { * @param {number} timeout * @return {Promise} */ - async getRequestContent(requestId, timeout = 5000) { + async getRequestContent(requestId, timeout = 1000) { requestId = NetworkRequest.getRequestIdForBackend(requestId); // Encoding issues may lead to hanging getResponseBody calls: https://github.com/GoogleChrome/lighthouse/pull/4718 - // driver.sendCommand will handle timeout after 5s. + // driver.sendCommand will handle timeout after 1s. this.setNextProtocolTimeout(timeout); const result = await this.sendCommand('Network.getResponseBody', {requestId}); return result.body;