From 0ef066f975540571fed84ea55916b3d7b15dfcf7 Mon Sep 17 00:00:00 2001 From: Fantix King Date: Wed, 27 Nov 2024 11:25:24 -0500 Subject: [PATCH] Use new Dump message for protocol >= 3.0 --- gel/protocol/protocol.pyx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gel/protocol/protocol.pyx b/gel/protocol/protocol.pyx index 47936cf6..7b9b67a4 100644 --- a/gel/protocol/protocol.pyx +++ b/gel/protocol/protocol.pyx @@ -539,8 +539,13 @@ cdef class SansIOProtocol: self.reset_status() buf = WriteBuffer.new_message(DUMP_MSG) - buf.write_int16(0) # no headers - buf.end_message() + if self.protocol_version >= (3, 0): + buf.write_int16(0) # no annotations + buf.write_int64(0) # flags + buf.end_message() + else: + buf.write_int16(0) # no headers + buf.end_message() buf.write_bytes(SYNC_MESSAGE) self.write(buf) @@ -641,7 +646,7 @@ cdef class SansIOProtocol: self.reset_status() buf = WriteBuffer.new_message(RESTORE_MSG) - buf.write_int16(0) # no headers + buf.write_int16(0) # no attributes buf.write_int16(1) # -j level buf.write_bytes(header) buf.end_message()