WebSocket++ snapshot - Test Case 3.4

Pass (2011-09-22T21:49:18Z - 22 ms)

Case

Description

Send small text message, then send again with RSV = 4, then send Ping. Octets are sent in octet-wise chops.

Expectation

Echo for first message is received, but then connection is failed immediately, since RSV must be 0, when no extension defining RSV meaning has been negoiated. The Pong is not received.

Result

Actual events match at least one expected.

Expected = {'NON-STRICT': [], 'OK': [('message', 'Hello, world!', False)]}

Actual = [('message', 'Hello, world!', False)]

Close Result

OK: Connection was properly closed

Statistics

Octets Received by Chop Size

Chop SizeCountOctets
19119
1291129
Total2148

Octets Transmitted by Chop Size

Chop SizeCountOctets
14444
818
2121212
Total46264

Frames Received by Opcode

OpcodeCount
11
81
Total2

Frames Transmitted by Opcode

OpcodeCount
12
81
91
Total4

Close Stats

KeyValue
isServer0
closedByMe0
failedByMe0
droppedByMe0
wasClean1
localCloseCode1000
remoteCloseCode1002
remoteCloseReasonNone

Wire Log

000 TX OCTETS: 474554202f20485454502f312e310d0a557365722d4167656e743a204175746f6261686e576562536f636b65747354657374
               53756974652f302e342e320d0a486f73743a2074686f722d776562736f636b65742e7a6170686f79642e6e65740d0a557067
               726164653a20776562736f636b65740d0a436f6e6e656374696f6e3a20557067726164650d0a5365632d576562536f636b65
               742d4b65793a20644145596b4b324d536e68423754723145504e3355673d3d0d0a5365632d576562536f636b65742d566572
               73696f6e3a2031330d0a0d0a
001 RX OCTETS: 485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a557067726164653a20776562736f636b
               65740d0a436f6e6e656374696f6e3a20557067726164650d0a5365632d576562536f636b65742d4163636570743a20667638
               59645a48755454424374506d4e34677150576355462f41413d0d0a0d0a
002 TX FRAME : OPCODE=1, FIN=True, RSV=0, MASK=3fcb95fd, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
               Hello, world!
003 TX OCTETS: 81
004 TX FRAME : OPCODE=1, FIN=True, RSV=4, MASK=52bf8330, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
               Hello, world!
005 TX FRAME : OPCODE=9, FIN=True, RSV=0, MASK=75fc3d99, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
006 KILL AFTER 1.000000 sec
007 TX OCTETS: 8d
008 TX OCTETS: 3f
009 TX OCTETS: cb
010 TX OCTETS: 95
011 TX OCTETS: fd
012 TX OCTETS: 77
013 TX OCTETS: ae
014 TX OCTETS: f9
015 TX OCTETS: 91
016 TX OCTETS: 50
017 TX OCTETS: e7
018 TX OCTETS: b5
019 TX OCTETS: 8a
020 TX OCTETS: 50
021 TX OCTETS: b9
022 TX OCTETS: f9
023 TX OCTETS: 99
024 TX OCTETS: 1e
025 TX OCTETS: c1
026 TX OCTETS: 8d
027 TX OCTETS: 52
028 TX OCTETS: bf
029 TX OCTETS: 83
030 TX OCTETS: 30
031 TX OCTETS: 1a
032 TX OCTETS: da
033 TX OCTETS: ef
034 TX OCTETS: 5c
035 TX OCTETS: 3d
036 TX OCTETS: 93
037 TX OCTETS: a3
038 TX OCTETS: 47
039 TX OCTETS: 3d
040 TX OCTETS: cd
041 TX OCTETS: ef
042 TX OCTETS: 54
043 TX OCTETS: 73
044 TX OCTETS: 89
045 TX OCTETS: 80
046 TX OCTETS: 75
047 TX OCTETS: fc
048 TX OCTETS: 3d
049 TX OCTETS: 99
050 RX OCTETS: 810d48656c6c6f2c20776f726c6421880203ea
051 RX FRAME : OPCODE=1, FIN=True, RSV=0, MASKED=False, MASK=None
               Hello, world!
052 RX FRAME : OPCODE=8, FIN=True, RSV=0, MASKED=False, MASK=None
053 TX FRAME : OPCODE=8, FIN=True, RSV=0, MASK=1cba430c, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
054 TX OCTETS: 88821cba430c1f52
055 TCP CLOSED BY PEER