From 436ccd42401e0a946eec139d1d9f410e74ccc5a4 Mon Sep 17 00:00:00 2001 From: Kumar McMillan Date: Mon, 27 Jun 2016 12:23:12 -0500 Subject: [PATCH] fix: `web-ext run`: increased the timeout for connecting to the Firefox debugger from 6 seconds to 30 seconds. --- src/cmd/run.js | 4 +++- src/firefox/remote.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cmd/run.js b/src/cmd/run.js index 9e6f4de8cf..170a45dd07 100644 --- a/src/cmd/run.js +++ b/src/cmd/run.js @@ -51,7 +51,8 @@ export function defaultReloadStrategy( export function defaultFirefoxClient( {connectToFirefox=defaultFirefoxConnector, - maxRetries=25, retryInterval=120}: Object = {}) { + // A max of 250 will try connecting for 30 seconds. + maxRetries=250, retryInterval=120}: Object = {}) { var retries = 0; function establishConnection() { @@ -81,6 +82,7 @@ export function defaultFirefoxClient( }); } + log.info('Connecting to the remote Firefox debugger'); return establishConnection(); } diff --git a/src/firefox/remote.js b/src/firefox/remote.js index c2e4e1717e..0003678b7e 100644 --- a/src/firefox/remote.js +++ b/src/firefox/remote.js @@ -15,7 +15,7 @@ export default function connect( log.debug(`Connecting to Firefox on port ${port}`); return connectToFirefox(port) .then((client) => { - log.info('Connected to the Firefox remote debugger'); + log.debug('Connected to the remote Firefox debugger'); return new RemoteFirefox(client); }); }