Show More
@@ -842,8 +842,11 b' class Session(Configurable):' | |||||
842 | message['content'] = self.unpack(msg_list[4]) |
|
842 | message['content'] = self.unpack(msg_list[4]) | |
843 | else: |
|
843 | else: | |
844 | message['content'] = msg_list[4] |
|
844 | message['content'] = msg_list[4] | |
845 |
|
845 | buffers = [memoryview(b) for b in msg_list[5:]] | ||
846 | message['buffers'] = msg_list[5:] |
|
846 | if buffers and buffers[0].shape is None: | |
|
847 | # force copy to workaround pyzmq #646 | |||
|
848 | buffers = [memoryview(b.bytes) for b in msg_list[5:]] | |||
|
849 | message['buffers'] = buffers | |||
847 | # adapt to the current version |
|
850 | # adapt to the current version | |
848 | return adapt(message) |
|
851 | return adapt(message) | |
849 |
|
852 |
General Comments 0
You need to be logged in to leave comments.
Login now