summaryrefslogtreecommitdiffstats
path: root/remoting/remoting_webapp_files.gypi
diff options
context:
space:
mode:
authorkelvinp@chromium.org <kelvinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 23:48:55 +0000
committerkelvinp@chromium.org <kelvinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 23:48:55 +0000
commitbf7e9521a599eb09fe7e207aeafdedf9c089bcdd (patch)
treeb85bf06f1a1c7342848808dd4d92dc5f6505a628 /remoting/remoting_webapp_files.gypi
parenta4f0d8897f27c9d8edfe31b3a99baec79934b6c3 (diff)
downloadchromium_src-bf7e9521a599eb09fe7e207aeafdedf9c089bcdd.zip
chromium_src-bf7e9521a599eb09fe7e207aeafdedf9c089bcdd.tar.gz
chromium_src-bf7e9521a599eb09fe7e207aeafdedf9c089bcdd.tar.bz2
Smart Reconnect
This CL serves to make the experience below better “I typically have to manually reconnect 20-40 times per day when working remotely, about 10 reconnects are due to wifi zone changes, and 20 are due to closing my laptop screen (Chromebook Pixel). “ - A customer Cause: There are three factors that causes the connection to drop 1. When the client is suspended, the host times out in 1 min. This is particular common when the user closes the lid of the laptop and walk to another room for meeting. (P1) 2. When the client is not suspended, but cannot reach the host (network changes, host_is_offline) a. If the timeout is less than 1 min, it will try to reconnect, however, the reconnect could takes up to 2 min. Most people won't have that kind of patience to wait for the reconnect. (P2) b. If the timeout is larger than 1 min, it will timeout. Fix: This change addresses (1) and (2b) by listening to the changes in connection state of the session. If it transits from CONNECTED to FAILED and the host is not offline, we reconnect. In order for this to work smoothly, the timeout of session initiation and session accept needs to be increased, which is included in part II. Review URL: https://codereview.chromium.org/245983003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267671 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/remoting_webapp_files.gypi')
-rw-r--r--remoting/remoting_webapp_files.gypi1
1 files changed, 1 insertions, 0 deletions
diff --git a/remoting/remoting_webapp_files.gypi b/remoting/remoting_webapp_files.gypi
index 40b97dd..2bb8437 100644
--- a/remoting/remoting_webapp_files.gypi
+++ b/remoting/remoting_webapp_files.gypi
@@ -48,6 +48,7 @@
'webapp/clipboard.js',
'webapp/media_source_renderer.js',
'webapp/session_connector.js',
+ 'webapp/smart_reconnector.js',
],
# Remoting core JavaScript files.
'remoting_webapp_js_core_files': [