From ae1587e86e5eadc560f1804f77de863c2e8eb7ba 2013-07-06 05:17:39 From: MinRK Date: 2013-07-06 05:17:39 Subject: [PATCH] up default max_msg_size to 1MB --- diff --git a/IPython/html/notebookapp.py b/IPython/html/notebookapp.py index 561edb5..2dcd023 100644 --- a/IPython/html/notebookapp.py +++ b/IPython/html/notebookapp.py @@ -295,8 +295,8 @@ class NotebookApp(BaseIPythonApplication): kernel_argv = List(Unicode) - max_msg_size = Integer(65536, config=True, help=""" - The max raw message size accepted from the browser + max_msg_size = Integer(2**20, config=True, help=""" + The max raw message size (in bytes) accepted from the browser over a WebSocket connection. """) diff --git a/IPython/html/services/kernels/handlers.py b/IPython/html/services/kernels/handlers.py index 0300211..5eb456e 100644 --- a/IPython/html/services/kernels/handlers.py +++ b/IPython/html/services/kernels/handlers.py @@ -81,7 +81,7 @@ class ZMQChannelHandler(AuthenticatedZMQStreamHandler): @property def max_msg_size(self): - return self.settings.get('max_msg_size', 65535) + return self.settings.get('max_msg_size', 2**20) def create_stream(self): km = self.kernel_manager