mirror of
https://github.com/status-im/nim-websock.git
synced 2025-01-12 10:35:03 +00:00
176 lines
4.1 KiB
JSON
176 lines
4.1 KiB
JSON
{
|
|
"agent": "websock-secure-client",
|
|
"behavior": "NON-STRICT",
|
|
"behaviorClose": "OK",
|
|
"case": 76,
|
|
"closedByMe": false,
|
|
"createStats": true,
|
|
"createWirelog": true,
|
|
"description": "Same as Case 6.4.1, but we send message not in 3 frames, but in 3 chops of the same message frame.\n<br><br>MESSAGE PARTS:<br>\nPART1 = cebae1bdb9cf83cebcceb5<br>\nPART2 = f4908080<br>\nPART3 = 656469746564<br>\n",
|
|
"droppedByMe": false,
|
|
"duration": 2001,
|
|
"expectation": "The first chop is accepted, we expect to timeout on the first wait. The 2nd chop 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=76&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: t8pLg6PgLLm3w/GWf7DtIQ==\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: 6Z/nQKzGA/lL4v85R1thkG0mDdM=\r\n\r\n",
|
|
"id": "6.4.3",
|
|
"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": "2024-02-16T18:34:34.510Z",
|
|
"trafficStats": null,
|
|
"txFrameStats": {
|
|
"0": 1
|
|
},
|
|
"txOctetStats": {
|
|
"2": 2,
|
|
"4": 1,
|
|
"6": 1,
|
|
"11": 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,
|
|
"474554202f72756e436173653f636173653d3736266167656e743d776562736f636b2d7365637572652d636c69656e7420485454502f312e310d0a5365632d57 ..."
|
|
]
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
206,
|
|
"485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a5365727665723a204175746f6261686e5465737453756974652f302e382e ..."
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
2,
|
|
"0115"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
11,
|
|
"cebae1bdb9cf83cebcceb5"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"CT",
|
|
1,
|
|
"A"
|
|
],
|
|
[
|
|
"CTE",
|
|
"A"
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
4,
|
|
"f4908080"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"CT",
|
|
1,
|
|
"B"
|
|
],
|
|
[
|
|
"CTE",
|
|
"B"
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
6,
|
|
"656469746564"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"TF",
|
|
[
|
|
0,
|
|
""
|
|
],
|
|
0,
|
|
true,
|
|
0,
|
|
null,
|
|
null,
|
|
null,
|
|
false
|
|
],
|
|
[
|
|
"TO",
|
|
[
|
|
2,
|
|
"8000"
|
|
],
|
|
false
|
|
],
|
|
[
|
|
"KL",
|
|
1
|
|
]
|
|
]
|
|
} |