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
5a23d925
Unverified
Commit
5a23d925
authored
Mar 01, 2018
by
liuzheng
Committed by
liuzheng712
Mar 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update, try to fix the session auto remove
maybe fix the bug
parent
24da12cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
httpd.py
coco/httpd.py
+5
-1
No files found.
coco/httpd.py
View file @
5a23d925
...
@@ -64,6 +64,7 @@ class ProxyNamespace(BaseNamespace):
...
@@ -64,6 +64,7 @@ class ProxyNamespace(BaseNamespace):
"room"
:
room
,
"room"
:
room
,
"proxy"
:
dict
(),
"proxy"
:
dict
(),
"client"
:
dict
(),
"client"
:
dict
(),
"thread"
:
dict
(),
"forwarder"
:
dict
(),
"forwarder"
:
dict
(),
"request"
:
self
.
make_coco_request
()
"request"
:
self
.
make_coco_request
()
}
}
...
@@ -151,7 +152,7 @@ class ProxyNamespace(BaseNamespace):
...
@@ -151,7 +152,7 @@ class ProxyNamespace(BaseNamespace):
self
.
clients
[
request
.
sid
][
"forwarder"
][
connection
]
=
ProxyServer
(
self
.
clients
[
request
.
sid
][
"forwarder"
][
connection
]
=
ProxyServer
(
self
.
app
,
self
.
clients
[
request
.
sid
][
"client"
][
connection
]
self
.
app
,
self
.
clients
[
request
.
sid
][
"client"
][
connection
]
)
)
self
.
socketio
.
start_background_task
(
self
.
clients
[
request
.
sid
][
"thread"
][
connection
]
=
self
.
socketio
.
start_background_task
(
self
.
clients
[
request
.
sid
][
"forwarder"
][
connection
]
.
proxy
,
self
.
clients
[
request
.
sid
][
"forwarder"
][
connection
]
.
proxy
,
asset
,
system_user
asset
,
system_user
)
)
...
@@ -231,6 +232,9 @@ class ProxyNamespace(BaseNamespace):
...
@@ -231,6 +232,9 @@ class ProxyNamespace(BaseNamespace):
del
self
.
clients
[
request
.
sid
][
"forwarder"
][
connection
]
del
self
.
clients
[
request
.
sid
][
"forwarder"
][
connection
]
if
connection
in
self
.
clients
[
request
.
sid
][
"client"
]
.
keys
():
if
connection
in
self
.
clients
[
request
.
sid
][
"client"
]
.
keys
():
del
self
.
clients
[
request
.
sid
][
"client"
][
connection
]
del
self
.
clients
[
request
.
sid
][
"client"
][
connection
]
if
connection
in
self
.
clients
[
request
.
sid
][
"thread"
]
.
keys
():
logger
.
debug
(
"thread close"
,
connection
)
self
.
clients
[
request
.
sid
][
"thread"
][
connection
]
.
stop
()
class
HttpServer
:
class
HttpServer
:
...
...
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