From 4a54edb2caa3a1ec22cded64d7c3e0200802c2b5 2013-07-06 05:17:40 From: MinRK Date: 2013-07-06 05:17:40 Subject: [PATCH] warn about messages dropped due to oversize --- diff --git a/IPython/html/services/kernels/handlers.py b/IPython/html/services/kernels/handlers.py index 5eb456e..701a054 100644 --- a/IPython/html/services/kernels/handlers.py +++ b/IPython/html/services/kernels/handlers.py @@ -112,6 +112,10 @@ class ZMQChannelHandler(AuthenticatedZMQStreamHandler): if len(msg) < self.max_msg_size: msg = jsonapi.loads(msg) self.session.send(self.zmq_stream, msg) + else: + self.log.warn("Dropping oversized message: %iB > %iB (NotebookApp.max_msg_size)", + len(msg), self.max_msg_size + ) def on_close(self): # This method can be called twice, once by self.kernel_died and once