2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 19:40:12 +00:00

Reap session immediately on logout

When a logout happens in httpapi, immediately reap related console sessions that are in flight.
This commit is contained in:
Jarrod Johnson 2016-02-27 14:04:19 -05:00
parent 029c06cc66
commit 1b26b2cf3d

View File

@ -425,6 +425,7 @@ def resourcehandler_backend(env, start_response):
httpsessions[authorized['sessionid']]['inflight'].discard(
greenlet.getcurrent())
if loggedout is not None:
consolesessions[sessid]['session'].destroy()
start_response('401 Logged out', [])
yield 'Logged out'
return