WebSocket++ snapshot - Test Case 6.4.3

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

Case

Description

Send invalid UTF-8 text message in 3 fragments plus more. First is valid, then wait, then 2nd which contains the octet making the sequence invalid, then wait, then 3rd with rest. Then we send 64k frames forever.

MESSAGE:
Îºá½¹ÏƒÎ¼Îµí €edited
cebae1bdb9cf83cebcceb5eda080656469746564

Expectation

The first frame is accepted, we expect to timeout on the first wait. The 2nd frame should be rejected immediately (fail fast on UTF-8). If we timeout, we expect the connection is failed at least then, since the payload is not valid UTF-8.

Result

Actual events match at least one expected.

Expected = {'NON-STRICT': [('timeout', 'A'), ('timeout', 'B')], 'OK': [('timeout', 'A')]}

Actual = [('timeout', 'A'), ('timeout', 'B')]

Close Result

FAILED: The connection was failed by the wrong endpoint

Statistics

Octets Received by Chop Size

Chop SizeCountOctets
21121
1291129
Total2150

Octets Transmitted by Chop Size

Chop SizeCountOctets
717
818
13113
18118
2121212
Total5258

Frames Received by Opcode

OpcodeCount
81
Total1

Frames Transmitted by Opcode

OpcodeCount
02
11
81
Total4

Close Stats

KeyValue
isServer0
closedByMe1
failedByMe0
droppedByMe0
wasClean1
localCloseCode1000
remoteCloseCode1007
remoteCloseReasonInvalid UTF8 Data

Wire Log

000 TX OCTETS: 474554202f20485454502f312e310d0a557365722d4167656e743a204175746f6261686e576562536f636b65747354657374
               53756974652f302e342e320d0a486f73743a2074686f722d776562736f636b65742e7a6170686f79642e6e65740d0a557067
               726164653a20776562736f636b65740d0a436f6e6e656374696f6e3a20557067726164650d0a5365632d576562536f636b65
               742d4b65793a2039424561774f4e4a594a59714c524a39644c47366f773d3d0d0a5365632d576562536f636b65742d566572
               73696f6e3a2031330d0a0d0a
001 RX OCTETS: 485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a557067726164653a20776562736f636b
               65740d0a436f6e6e656374696f6e3a20557067726164650d0a5365632d576562536f636b65742d4163636570743a2057596c
               4431366b487636547734366176346d4c7353485a453556343d0d0a0d0a
002 TX FRAME : OPCODE=1, FIN=False, RSV=0, MASK=4e48f035, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
               κόσμεí
003 TX OCTETS: 018c4e48f03580f21188f78773fbf28645d8
004 DELAY 1.000000 sec
005 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=35d9de72, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
                
006 TX OCTETS: 008135d9de7295
007 DELAY 1.000000 sec
008 RX OCTETS: 881303ef496e76616c696420555446382044617461
009 RX FRAME : OPCODE=8, FIN=True, RSV=0, MASKED=False, MASK=None
               ïInvalid UTF8 Data
010 TX FRAME : OPCODE=8, FIN=True, RSV=0, MASK=36d380d1, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
011 TX OCTETS: 888236d380d1353b
012 TX FRAME : OPCODE=0, FIN=False, RSV=0, MASK=1fee077c, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
               €edited
013 TX OCTETS: 00871fee077c9f8b63156b8b63
014 TCP CLOSED BY PEER