Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
20074a49
Commit
20074a49
authored
Feb 06, 2014
by
samhed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes the connection timeouts to enable slower clients, connections or servers.
parent
98c1275d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
24 deletions
+0
-24
base.css
include/base.css
+0
-3
rfb.js
include/rfb.js
+0
-15
ui.js
include/ui.js
+0
-5
vnc.html
vnc.html
+0
-1
No files found.
include/base.css
View file @
20074a49
...
...
@@ -41,9 +41,6 @@ html {
}
#noVNC_encrypt
{
}
#noVNC_connectTimeout
{
width
:
30px
;
}
#noVNC_path
{
width
:
100px
;
}
...
...
include/rfb.js
View file @
20074a49
...
...
@@ -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
();
...
...
include/ui.js
View file @
20074a49
...
...
@@ -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
);
...
...
vnc.html
View file @
20074a49
...
...
@@ -148,7 +148,6 @@
<li><input
id=
"noVNC_clip"
type=
"checkbox"
>
Clip to Window
</li>
<li><input
id=
"noVNC_shared"
type=
"checkbox"
>
Shared Mode
</li>
<li><input
id=
"noVNC_view_only"
type=
"checkbox"
>
View Only
</li>
<li><input
id=
"noVNC_connectTimeout"
type=
"input"
>
Connect Timeout (s)
</li>
<li><input
id=
"noVNC_path"
type=
"input"
value=
"websockify"
>
Path
</li>
<li><input
id=
"noVNC_repeaterID"
type=
"input"
value=
""
>
Repeater ID
</li>
<hr>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment