diff --git a/include/base.css b/include/base.css index f57d20e3..295b1321 100644 --- a/include/base.css +++ b/include/base.css @@ -41,9 +41,6 @@ html { } #noVNC_encrypt { } -#noVNC_connectTimeout { - width: 30px; -} #noVNC_path { width: 100px; } diff --git a/include/rfb.js b/include/rfb.js index 55d38c08..90b18dcd 100644 --- a/include/rfb.js +++ b/include/rfb.js @@ -76,7 +76,6 @@ var that = {}, // Public API methods keyboard = null, // Keyboard input handler object mouse = null, // Mouse input handler object sendTimer = null, // Send Queue check timer - connTimer = null, // connection timer disconnTimer = null, // disconnection timer msgTimer = null, // queued handle_message timer @@ -120,8 +119,6 @@ var that = {}, // Public API methods test_mode = false, - def_con_timeout = Websock_native ? 2 : 5, - /* Mouse state */ mouse_buttonMask = 0, mouse_arr = [], @@ -138,8 +135,6 @@ Util.conf_defaults(conf, that, defaults, [ ['local_cursor', 'rw', 'bool', false, 'Request locally rendered cursor'], ['shared', 'rw', 'bool', true, 'Request shared mode'], ['view_only', 'rw', 'bool', false, 'Disable client mouse/keyboard'], - - ['connectTimeout', 'rw', 'int', def_con_timeout, 'Time (s) to wait for connection'], ['disconnectTimeout', 'rw', 'int', 3, 'Time (s) to wait for disconnection'], // UltraVNC repeater ID to connect to @@ -439,12 +434,6 @@ updateState = function(state, statusMsg) { rfb_state = state; } - if (connTimer && (rfb_state !== 'connect')) { - Util.Debug("Clearing connect timer"); - clearTimeout(connTimer); - connTimer = null; - } - if (disconnTimer && (rfb_state !== 'disconnect')) { Util.Debug("Clearing disconnect timer"); clearTimeout(disconnTimer); @@ -461,10 +450,6 @@ updateState = function(state, statusMsg) { case 'connect': - - connTimer = setTimeout(function () { - fail("Connect timeout"); - }, conf.connectTimeout * 1000); init_vars(); connect(); diff --git a/include/ui.js b/include/ui.js index 9d2f1c4d..3ea8c884 100644 --- a/include/ui.js +++ b/include/ui.js @@ -86,7 +86,6 @@ start: function(callback) { UI.initSetting('cursor', !UI.isTouchDevice); UI.initSetting('shared', true); UI.initSetting('view_only', false); - UI.initSetting('connectTimeout', 2); UI.initSetting('path', 'websockify'); UI.initSetting('repeaterID', ''); @@ -388,7 +387,6 @@ toggleSettingsPanel: function() { UI.updateSetting('clip'); UI.updateSetting('shared'); UI.updateSetting('view_only'); - UI.updateSetting('connectTimeout'); UI.updateSetting('path'); UI.updateSetting('repeaterID'); UI.updateSetting('stylesheet'); @@ -437,7 +435,6 @@ settingsApply: function() { UI.saveSetting('clip'); UI.saveSetting('shared'); UI.saveSetting('view_only'); - UI.saveSetting('connectTimeout'); UI.saveSetting('path'); UI.saveSetting('repeaterID'); UI.saveSetting('stylesheet'); @@ -549,7 +546,6 @@ updateVisualState: function() { } $D('noVNC_shared').disabled = connected; $D('noVNC_view_only').disabled = connected; - $D('noVNC_connectTimeout').disabled = connected; $D('noVNC_path').disabled = connected; $D('noVNC_repeaterID').disabled = connected; @@ -622,7 +618,6 @@ connect: function() { UI.rfb.set_local_cursor(UI.getSetting('cursor')); UI.rfb.set_shared(UI.getSetting('shared')); UI.rfb.set_view_only(UI.getSetting('view_only')); - UI.rfb.set_connectTimeout(UI.getSetting('connectTimeout')); UI.rfb.set_repeaterID(UI.getSetting('repeaterID')); UI.rfb.connect(host, port, password, path); diff --git a/vnc.html b/vnc.html index 8b8847cc..174a12f3 100644 --- a/vnc.html +++ b/vnc.html @@ -148,7 +148,6 @@
  • Clip to Window
  • Shared Mode
  • View Only
  • -
  • Connect Timeout (s)
  • Path
  • Repeater ID