From 1b26b2cf3ddf5d6d75f0482f1d2728a3843e0ca8 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Sat, 27 Feb 2016 14:04:19 -0500 Subject: [PATCH] Reap session immediately on logout When a logout happens in httpapi, immediately reap related console sessions that are in flight. --- confluent_server/confluent/httpapi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/confluent_server/confluent/httpapi.py b/confluent_server/confluent/httpapi.py index c7a35556..3eabb440 100644 --- a/confluent_server/confluent/httpapi.py +++ b/confluent_server/confluent/httpapi.py @@ -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