WebSocket++ snapshot - Test Case 4.1.5

Pass (2011-09-22T18:47:22Z - 18 ms)

Case

Description

Send small text message, then send frame with reserved non-control Opcode = 7 and non-empty payload, then send Ping.

Expectation

Echo for first message is received, but then connection is failed immediately, since reserved opcode frame is used. A 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

FAILED: The connection was failed by the wrong endpoint

Statistics

Octets Received by Chop Size

Chop SizeCountOctets
414
15115
1291129
Total3148

Octets Transmitted by Chop Size

Chop SizeCountOctets
14444
818
2121212
Total46264

Frames Received by Opcode

OpcodeCount
11
81
Total2

Frames Transmitted by Opcode

OpcodeCount
11
71
81
91
Total4

Close Stats

KeyValue
isServer0
closedByMe1
failedByMe0
droppedByMe0
wasClean1
localCloseCode1000
remoteCloseCode1002
remoteCloseReasonNone

Wire Log

000 TX OCTETS: 474554202f20485454502f312e310d0a557365722d4167656e743a204175746f6261686e576562536f636b65747354657374
               53756974652f302e342e320d0a486f73743a2074686f722d776562736f636b65742e7a6170686f79642e6e65740d0a557067
               726164653a20776562736f636b65740d0a436f6e6e656374696f6e3a20557067726164650d0a5365632d576562536f636b65
               742d4b65793a205145614e5a5a5253336f53784b68414650564d6d71673d3d0d0a5365632d576562536f636b65742d566572
               73696f6e3a2031330d0a0d0a
001 RX OCTETS: 485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a557067726164653a20776562736f636b
               65740d0a436f6e6e656374696f6e3a20557067726164650d0a5365632d576562536f636b65742d4163636570743a20317459
               7339336344544168694a79477351364735766f5a756d33513d0d0a0d0a
002 TX FRAME : OPCODE=1, FIN=True, RSV=0, MASK=3f263e12, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
               Hello, world!
003 TX OCTETS: 81
004 TX FRAME : OPCODE=7, FIN=True, RSV=0, MASK=5352d421, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
               Hello, world!
005 TX FRAME : OPCODE=9, FIN=True, RSV=0, MASK=ff5f9207, 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: 26
010 TX OCTETS: 3e
011 TX OCTETS: 12
012 TX OCTETS: 77
013 TX OCTETS: 43
014 TX OCTETS: 52
015 TX OCTETS: 7e
016 TX OCTETS: 50
017 TX OCTETS: 0a
018 TX OCTETS: 1e
019 TX OCTETS: 65
020 TX OCTETS: 50
021 TX OCTETS: 54
022 TX OCTETS: 52
023 TX OCTETS: 76
024 TX OCTETS: 1e
025 TX OCTETS: 87
026 TX OCTETS: 8d
027 TX OCTETS: 53
028 TX OCTETS: 52
029 TX OCTETS: d4
030 TX OCTETS: 21
031 TX OCTETS: 1b
032 TX OCTETS: 37
033 TX OCTETS: b8
034 TX OCTETS: 4d
035 TX OCTETS: 3c
036 TX OCTETS: 7e
037 TX OCTETS: f4
038 TX OCTETS: 56
039 TX OCTETS: 3c
040 TX OCTETS: 20
041 TX OCTETS: b8
042 TX OCTETS: 45
043 TX OCTETS: 72
044 TX OCTETS: 89
045 TX OCTETS: 80
046 TX OCTETS: ff
047 TX OCTETS: 5f
048 TX OCTETS: 92
049 TX OCTETS: 07
050 RX OCTETS: 810d48656c6c6f2c20776f726c6421
051 RX FRAME : OPCODE=1, FIN=True, RSV=0, MASKED=False, MASK=None
               Hello, world!
052 RX OCTETS: 880203ea
053 RX FRAME : OPCODE=8, FIN=True, RSV=0, MASKED=False, MASK=None
054 TX FRAME : OPCODE=8, FIN=True, RSV=0, MASK=0de2fa1d, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
055 TX OCTETS: 88820de2fa1d0e0a
056 TCP CLOSED BY PEER