nim-websock/client_tls/websock_secure_client_case_6_4_1.json

188 lines
4.6 KiB
JSON

{
"agent": "websock-secure-client",
"behavior": "NON-STRICT",
"behaviorClose": "OK",
"case": 74,
"closedByMe": false,
"createStats": true,
"createWirelog": true,
"description": "Send invalid UTF-8 text message in 3 fragments (frames).\nFirst frame payload is valid, then wait, then 2nd frame which contains the payload making the sequence invalid, then wait, then 3rd frame with rest.\nNote that PART1 and PART3 are valid UTF-8 in themselves, PART2 is a 0x110000 encoded as in the UTF-8 integer encoding scheme, but the codepoint is invalid (out of range).\n<br><br>MESSAGE PARTS:<br>\nPART1 = cebae1bdb9cf83cebcceb5<br>\nPART2 = f4908080<br>\nPART3 = 656469746564<br>\n",
"droppedByMe": false,
"duration": 2001,
"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 complete message payload is not valid UTF-8.",
"expected": {
"NON-STRICT": [
[
"timeout",
"A"
],
[
"timeout",
"B"
]
],
"OK": [
[
"timeout",
"A"
]
]
},
"expectedClose": {
"closeCode": [
1007
],
"closedByMe": false,
"closedByWrongEndpointIsFatal": true,
"requireClean": false
},
"failedByMe": false,
"httpRequest": "GET /runCase?case=74&agent=websock-secure-client HTTP/1.1\r\nSec-Websocket-Extensions: permessage-deflate; client_max_window_bits=15\r\nUpgrade: websocket\r\nHost: 127.0.0.1:9002\r\nConnection: Upgrade\r\nSec-Websocket-Version: 13\r\nSec-Websocket-Key: wA+gJBzztuGZ+0mgJXUR5A==\r\nCache-Control: no-cache\r\n\r\n",
"httpResponse": "HTTP/1.1 101 Switching Protocols\r\nServer: AutobahnTestSuite/0.8.2-0.10.9\r\nX-Powered-By: AutobahnPython/0.10.9\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: REdYQEE7bqqiBsSqhX3RQk1TIH4=\r\n\r\n",
"id": "6.4.1",
"isServer": true,
"localCloseCode": null,
"localCloseReason": null,
"received": [
[
"timeout",
"A"
],
[
"timeout",
"B"
]
],
"remoteCloseCode": null,
"remoteCloseReason": null,
"reportCompressionRatio": false,
"reportTime": false,
"result": "Actual events match at least one expected.",
"resultClose": "Connection was properly closed",
"rxFrameStats": {},
"rxOctetStats": {
"294": 1
},
"started": "2022-10-24T12:37:14.292Z",
"trafficStats": null,
"txFrameStats": {
"0": 2,
"1": 1
},
"txOctetStats": {
"6": 1,
"8": 1,
"13": 1,
"206": 1
},
"wasClean": false,
"wasCloseHandshakeTimeout": false,
"wasNotCleanReason": "peer dropped the TCP connection without previous WebSocket closing handshake",
"wasOpenHandshakeTimeout": false,
"wasServerConnectionDropTimeout": false,
"wirelog": [
[
"RO",
[
294,
"474554202f72756e436173653f636173653d3734266167656e743d776562736f636b2d7365637572652d636c69656e7420485454502f312e310d0a5365632d57 ..."
]
],
[
"TO",
[
206,
"485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a5365727665723a204175746f6261686e5465737453756974652f302e382e ..."
],
false
],
[
"TF",
[
11,
"\u03ba\u1f79\u03c3\u03bc\u03b5"
],
1,
false,
0,
null,
null,
null,
false
],
[
"TO",
[
13,
"010bcebae1bdb9cf83cebcceb5"
],
false
],
[
"CT",
1,
"A"
],
[
"CTE",
"A"
],
[
"TF",
[
4,
"0xf4908080"
],
0,
false,
0,
null,
null,
null,
false
],
[
"TO",
[
6,
"0004f4908080"
],
false
],
[
"CT",
1,
"B"
],
[
"CTE",
"B"
],
[
"TF",
[
6,
"edited"
],
0,
true,
0,
null,
null,
null,
false
],
[
"TO",
[
8,
"8006656469746564"
],
false
],
[
"KL",
1
]
]
}