Commit 78d429fe authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

messages: Use a larger buffer for incoming messages.

This "fixes" the Matplotlib example.  Previously, we'd silently truncate
the "display_data" message containing the plot as we forwarded it,
resulting in breakage down the road.

* jupyter/messages.scm <top level>: Add call to 'zmq-set-buffer-size'.
parent 04635011
......@@ -81,6 +81,12 @@
;;; Code:
;; FIXME: Here we use 'zmq_recv' under the hood, which *truncates* messages
;; when they don't fit in the provided array. Thus, tell simple-zmq to use a
;; big buffer, in the hope that it'll fit. 64K should be enough for everyone.
;; TODO: Use the 'zmq_msg_t' API instead.
(zmq-set-buffer-size 65536)
;; Jupyter message header as defined at
;; <>.
(define-record-type <header>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment