Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webssh
Overview
Overview
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
郑天保
webssh
Commits
105c1f62
Commit
105c1f62
authored
Aug 26, 2018
by
Sheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close handler with reason why worker closed
parent
9b38d111
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
worker.py
webssh/worker.py
+2
-2
No files found.
webssh/worker.py
View file @
105c1f62
...
@@ -94,11 +94,11 @@ class Worker(object):
...
@@ -94,11 +94,11 @@ class Worker(object):
def
close
(
self
,
reason
=
None
):
def
close
(
self
,
reason
=
None
):
logging
.
info
(
logging
.
info
(
'Closing worker {} with reason
{}'
.
format
(
self
.
id
,
reason
)
'Closing worker {} with reason:
{}'
.
format
(
self
.
id
,
reason
)
)
)
if
self
.
handler
:
if
self
.
handler
:
self
.
loop
.
remove_handler
(
self
.
fd
)
self
.
loop
.
remove_handler
(
self
.
fd
)
self
.
handler
.
close
()
self
.
handler
.
close
(
reason
=
reason
)
self
.
chan
.
close
()
self
.
chan
.
close
()
self
.
ssh
.
close
()
self
.
ssh
.
close
()
logging
.
info
(
'Connection to {}:{} lost'
.
format
(
*
self
.
dst_addr
))
logging
.
info
(
'Connection to {}:{} lost'
.
format
(
*
self
.
dst_addr
))
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