##// END OF EJS Templates
wireprotov2: change frame type value for command data...
Gregory Szorc -
r37741:e8fba6d5 default
parent child Browse files
Show More
@@ -638,10 +638,10 b' 0x08'
638 ``0x01`` or ``0x02`` MUST be set to indicate this frame's role in
638 ``0x01`` or ``0x02`` MUST be set to indicate this frame's role in
639 a series of command request frames.
639 a series of command request frames.
640
640
641 If command data frames are to be sent, ``0x10`` MUST be set on ALL
641 If command data frames are to be sent, ``0x08`` MUST be set on ALL
642 command request frames.
642 command request frames.
643
643
644 Command Data (``0x03``)
644 Command Data (``0x02``)
645 -----------------------
645 -----------------------
646
646
647 This frame contains raw data for a command.
647 This frame contains raw data for a command.
@@ -42,7 +42,7 b' STREAM_FLAGS = {'
42 }
42 }
43
43
44 FRAME_TYPE_COMMAND_REQUEST = 0x01
44 FRAME_TYPE_COMMAND_REQUEST = 0x01
45 FRAME_TYPE_COMMAND_DATA = 0x03
45 FRAME_TYPE_COMMAND_DATA = 0x02
46 FRAME_TYPE_BYTES_RESPONSE = 0x04
46 FRAME_TYPE_BYTES_RESPONSE = 0x04
47 FRAME_TYPE_ERROR_RESPONSE = 0x05
47 FRAME_TYPE_ERROR_RESPONSE = 0x05
48 FRAME_TYPE_TEXT_OUTPUT = 0x06
48 FRAME_TYPE_TEXT_OUTPUT = 0x06
@@ -185,7 +185,7 b' class ServerReactorTests(unittest.TestCa'
185 ffs(b'1 1 stream-begin command-data 0 ignored'))
185 ffs(b'1 1 stream-begin command-data 0 ignored'))
186 self.assertaction(result, b'error')
186 self.assertaction(result, b'error')
187 self.assertEqual(result[1], {
187 self.assertEqual(result[1], {
188 b'message': b'expected command request frame; got 3',
188 b'message': b'expected command request frame; got 2',
189 })
189 })
190
190
191 def testunexpectedcommanddatareceiving(self):
191 def testunexpectedcommanddatareceiving(self):
General Comments 0
You need to be logged in to leave comments. Login now