From 4241b100e71f60f762ef36dad943f4475eea8bf7 2015-02-28 19:22:19 From: Min RK Date: 2015-02-28 19:22:19 Subject: [PATCH] get session.key from kernel manager in kernel channel handlers we were accidentally relying on loading Session.key from config set via the default_secure decorator, which forced the key to be the same for every kernel. --- diff --git a/IPython/html/services/kernels/handlers.py b/IPython/html/services/kernels/handlers.py index 308a5a9..158abf9 100644 --- a/IPython/html/services/kernels/handlers.py +++ b/IPython/html/services/kernels/handlers.py @@ -179,6 +179,8 @@ class ZMQChannelsHandler(AuthenticatedZMQStreamHandler): # then request kernel info, waiting up to a certain time before giving up. # We don't want to wait forever, because browsers don't take it well when # servers never respond to websocket connection requests. + kernel = self.kernel_manager.get_kernel(self.kernel_id) + self.session.key = kernel.session.key future = self.request_kernel_info() def give_up():