Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coco
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
coco
Commits
59d387fa
Commit
59d387fa
authored
Dec 18, 2017
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update, a bug maybe
parent
96f121a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
httpd.py
coco/httpd.py
+5
-1
models.py
coco/models.py
+1
-1
No files found.
coco/httpd.py
View file @
59d387fa
...
...
@@ -101,7 +101,11 @@ class SSHws(Namespace, BaseWebSocketHandler):
self
.
clients
[
request
.
sid
][
"request"
]
.
change_size_event
.
set
()
def
on_disconnect
(
self
):
self
.
clients
[
request
.
sid
][
"proxy"
]
.
close
()
try
:
# todo: there maybe have bug
self
.
clients
[
request
.
sid
][
"proxy"
]
.
close
()
except
:
pass
# self.ssh.close()
pass
...
...
coco/models.py
View file @
59d387fa
...
...
@@ -229,5 +229,5 @@ class WSProxy:
def
close
(
self
):
self
.
stop_event
.
set
()
self
.
ws
.
close
()
self
.
child
.
close
()
self
.
ws
.
on_disconnect
()
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