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
53dfab7f
Commit
53dfab7f
authored
May 11, 2012
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pull from websockify. Fix close code.
parent
bc28395a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
websocket.py
utils/websocket.py
+1
-3
No files found.
utils/websocket.py
View file @
53dfab7f
...
...
@@ -362,7 +362,7 @@ Sec-WebSocket-Accept: %s\r
if
f
[
'opcode'
]
==
0x08
:
if
f
[
'length'
]
>=
2
:
f
[
'close_code'
]
=
unpack_from
(
">H"
,
f
[
'payload'
])
f
[
'close_code'
]
=
unpack_from
(
">H"
,
f
[
'payload'
])
[
0
]
if
f
[
'length'
]
>
3
:
f
[
'close_reason'
]
=
f
[
'payload'
][
2
:]
...
...
@@ -769,8 +769,6 @@ Sec-WebSocket-Accept: %s\r
# Close the client
_
,
exc
,
_
=
sys
.
exc_info
()
if
self
.
client
:
print
exc
print
repr
(
exc
.
args
)
self
.
send_close
(
exc
.
args
[
0
],
exc
.
args
[
1
])
except
self
.
EClose
:
_
,
exc
,
_
=
sys
.
exc_info
()
...
...
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