WebSocket++ snapshot - Test Case 6.4.5

Non-Strict (2011-09-22T21:49:28Z - 2046 ms)

Case

Description

Send invalid UTF-8 text message in 2 fragments plus more. First is valid, then wait, then in 2nd frame, send the octet making the sequence invalid, then wait, then send test rest of 2nd frame. 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) upon receiving the offending octet. 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

OK: Connection was properly closed

Statistics

Octets Received by Chop Size

Chop SizeCountOctets
21121
1291129
Total2150

Octets Transmitted by Chop Size

Chop SizeCountOctets
111
616
717
818
12112
2121212
410432131328
Total38131574

Frames Received by Opcode

OpcodeCount
81
Total1

Frames Transmitted by Opcode

OpcodeCount
032
81
Total33

Close Stats

KeyValue
isServer0
closedByMe0
failedByMe0
droppedByMe0
wasClean1
localCloseCode1000
remoteCloseCode1007
remoteCloseReasonInvalid UTF8 Data

Wire Log

Wire log after handshake disabled!

000 TX OCTETS: 474554202f20485454502f312e310d0a557365722d4167656e743a204175746f6261686e576562536f636b65747354657374
               53756974652f302e342e320d0a486f73743a2074686f722d776562736f636b65742e7a6170686f79642e6e65740d0a557067
               726164653a20776562736f636b65740d0a436f6e6e656374696f6e3a20557067726164650d0a5365632d576562536f636b65
               742d4b65793a20767575673048794e6c387541667a53644c66695855773d3d0d0a5365632d576562536f636b65742d566572
               73696f6e3a2031330d0a0d0a
001 RX OCTETS: 485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a557067726164653a20776562736f636b
               65740d0a436f6e6e656374696f6e3a20557067726164650d0a5365632d576562536f636b65742d4163636570743a20495346
               4c6d364f6d69624b734a6e4b4a4961515950796a6232696f3d0d0a0d0a
002 TX OCTETS: 0194a1809f67
003 TX OCTETS: 6f3a7eda184f1ca91d4e2a8a
004 DELAY 1.000000 sec
005 TX OCTETS: 01
006 DELAY 1.000000 sec
007 TX OCTETS: 00fa03c8f4fa03
008 TCP CLOSED BY PEER