##// END OF EJS Templates
warn about messages dropped due to oversize
MinRK -
Show More
@@ -112,6 +112,10 b' class ZMQChannelHandler(AuthenticatedZMQStreamHandler):'
112 if len(msg) < self.max_msg_size:
112 if len(msg) < self.max_msg_size:
113 msg = jsonapi.loads(msg)
113 msg = jsonapi.loads(msg)
114 self.session.send(self.zmq_stream, msg)
114 self.session.send(self.zmq_stream, msg)
115 else:
116 self.log.warn("Dropping oversized message: %iB > %iB (NotebookApp.max_msg_size)",
117 len(msg), self.max_msg_size
118 )
115
119
116 def on_close(self):
120 def on_close(self):
117 # This method can be called twice, once by self.kernel_died and once
121 # This method can be called twice, once by self.kernel_died and once
General Comments 0
You need to be logged in to leave comments. Login now