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
20be29f9
Commit
20be29f9
authored
Apr 27, 2018
by
Sheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use warning instead of warn
parent
08853996
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
handler.py
webssh/handler.py
+1
-1
worker.py
webssh/worker.py
+1
-1
No files found.
webssh/handler.py
View file @
20be29f9
...
@@ -36,7 +36,7 @@ class MixinHandler(object):
...
@@ -36,7 +36,7 @@ class MixinHandler(object):
if
ip
:
# does not validate ip and port here
if
ip
:
# does not validate ip and port here
return
(
ip
,
port
)
return
(
ip
,
port
)
logging
.
warn
(
'Bad nginx configuration.'
)
logging
.
warn
ing
(
'Bad nginx configuration.'
)
return
False
return
False
...
...
webssh/worker.py
View file @
20be29f9
...
@@ -13,7 +13,7 @@ workers = {}
...
@@ -13,7 +13,7 @@ workers = {}
def
recycle_worker
(
worker
):
def
recycle_worker
(
worker
):
if
worker
.
handler
:
if
worker
.
handler
:
return
return
logging
.
warn
(
'Recycling worker {}'
.
format
(
worker
.
id
))
logging
.
warn
ing
(
'Recycling worker {}'
.
format
(
worker
.
id
))
workers
.
pop
(
worker
.
id
,
None
)
workers
.
pop
(
worker
.
id
,
None
)
worker
.
close
(
reason
=
'worker recycled'
)
worker
.
close
(
reason
=
'worker recycled'
)
...
...
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