WebSocket++ snapshot - Test Case 4.1.3

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

Case

Description

Send small text message, then send frame with reserved non-control Opcode = 5, 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

OK: Connection was properly closed

Statistics

Octets Received by Chop Size

Chop SizeCountOctets
19119
1291129
Total2148

Octets Transmitted by Chop Size

Chop SizeCountOctets
6212
818
19119
2121212
Total5251

Frames Received by Opcode

OpcodeCount
11
81
Total2

Frames Transmitted by Opcode

OpcodeCount
11
51
81
91
Total4

Close Stats

KeyValue
isServer0
closedByMe0
failedByMe0
droppedByMe0
wasClean1
localCloseCode1000
remoteCloseCode1002
remoteCloseReasonNone

Wire Log

000 TX OCTETS: 474554202f20485454502f312e310d0a557365722d4167656e743a204175746f6261686e576562536f636b65747354657374
               53756974652f302e342e320d0a486f73743a2074686f722d776562736f636b65742e7a6170686f79642e6e65740d0a557067
               726164653a20776562736f636b65740d0a436f6e6e656374696f6e3a20557067726164650d0a5365632d576562536f636b65
               742d4b65793a2054304379456d5535714b4b48544958565848527469773d3d0d0a5365632d576562536f636b65742d566572
               73696f6e3a2031330d0a0d0a
001 RX OCTETS: 485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a557067726164653a20776562736f636b
               65740d0a436f6e6e656374696f6e3a20557067726164650d0a5365632d576562536f636b65742d4163636570743a204f7878
               34723342636c6e4138713335414c32747543585a2b44726f3d0d0a0d0a
002 TX FRAME : OPCODE=1, FIN=True, RSV=0, MASK=1b173eb1, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
               Hello, world!
003 TX OCTETS: 818d1b173eb1537252dd743b1ec6746552d53a
004 TX FRAME : OPCODE=5, FIN=True, RSV=0, MASK=4b5de60b, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
005 TX OCTETS: 85804b5de60b
006 TX FRAME : OPCODE=9, FIN=True, RSV=0, MASK=fbd4971a, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
007 TX OCTETS: 8980fbd4971a
008 KILL AFTER 1.000000 sec
009 RX OCTETS: 810d48656c6c6f2c20776f726c6421880203ea
010 RX FRAME : OPCODE=1, FIN=True, RSV=0, MASKED=False, MASK=None
               Hello, world!
011 RX FRAME : OPCODE=8, FIN=True, RSV=0, MASKED=False, MASK=None
012 TX FRAME : OPCODE=8, FIN=True, RSV=0, MASK=5d882afc, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
013 TX OCTETS: 88825d882afc5e60
014 TCP CLOSED BY PEER