tokio-websockets - Case 2.11 : Pass - 24 ms @ 2024-11-15T23:18:40.812Z
Case Description
Send 10 Pings with payload. Send out octets in octet-wise chops.
Case Expectation
Pongs for our Pings with all the payloads. Note: This is not required by the Spec .. but we check for this behaviour anyway. Clean close with normal code.
Case Outcome
Actual events match at least one expected.
Expected:
{'OK': [('pong', u'payload-0'), ('pong', u'payload-1'), ('pong', u'payload-2'), ('pong', u'payload-3'), ('pong', u'payload-4'), ('pong', u'payload-5'), ('pong', u'payload-6'), ('pong', u'payload-7'), ('pong', u'payload-8'), ('pong', u'payload-9')]}
Observed:
[('pong', u'payload-0'), ('pong', u'payload-1'), ('pong', u'payload-2'), ('pong', u'payload-3'), ('pong', u'payload-4'), ('pong', u'payload-5'), ('pong', u'payload-6'), ('pong', u'payload-7'), ('pong', u'payload-8'), ('pong', u'payload-9')]
Case Closing Behavior
Connection was properly closed (OK)
GET / HTTP/1.1 User-Agent: AutobahnTestSuite/0.8.2-0.10.9 Host: 127.0.0.1:9006 Upgrade: WebSocket Connection: Upgrade Pragma: no-cache Cache-Control: no-cache Sec-WebSocket-Key: DLOzPsUY0+9Awm4k8MYYig== Sec-WebSocket-Version: 13
HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade Sec-WebSocket-Accept: NGNbdLZ0EDd+OIQyCoUrXJBDIsg=
Key | Value | Description |
isServer | False | True, iff I (the fuzzer) am a server, and the peer is a client. |
closedByMe | True | True, iff I have initiated closing handshake (that is, did send close first). |
failedByMe | False | True, iff I have failed the WS connection (i.e. due to protocol error). Failing can be either by initiating closing handshake or brutal drop TCP. |
droppedByMe | False | True, iff I dropped the TCP connection. |
wasClean | True | True, iff full WebSocket closing handshake was performed (close frame sent and received) _and_ the server dropped the TCP (which is its responsibility). |
wasNotCleanReason | None | When wasClean == False, the reason what happened. |
wasServerConnectionDropTimeout | False | When we are a client, and we expected the server to drop the TCP, but that didn't happen in time, this gets True. |
wasOpenHandshakeTimeout | False | When performing the opening handshake, but the peer did not finish in time, this gets True. |
wasCloseHandshakeTimeout | False | When we initiated a closing handshake, but the peer did not respond in time, this gets True. |
localCloseCode | 1000 | The close code I sent in close frame (if any). |
localCloseReason | None | The close reason I sent in close frame (if any). |
remoteCloseCode | 1000 | The close code the peer sent me in close frame (if any). |
remoteCloseReason | None | The close reason the peer sent me in close frame (if any). |
Chop Size | Count | Octets |
4 | 1 | 4 |
11 | 10 | 110 |
129 | 1 | 129 |
Total | 12 | 243 |
Chop Size | Count | Octets |
1 | 150 | 150 |
8 | 1 | 8 |
240 | 1 | 240 |
Total | 152 | 398 |
Opcode | Count |
8 | 1 |
10 | 10 |
Total | 11 |
Opcode | Count |
8 | 1 |
9 | 10 |
Total | 11 |
000 TX OCTETS: 474554202f20485454502f312e310d0a557365722d4167656e743a204175746f6261686e5465737453756974652f302e382e
322d302e31302e390d0a486f7374 ...
001 RX OCTETS: 485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a557067726164653a20776562736f636b
65740d0a436f6e6e656374696f6e ...
002 TX FRAME : OPCODE=9, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=6bdd91ff, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
payload-0
003 TX OCTETS: 89
004 TX FRAME : OPCODE=9, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=5729c7be, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
payload-1
005 TX FRAME : OPCODE=9, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=429da2a5, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
payload-2
006 TX FRAME : OPCODE=9, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=8370ce70, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
payload-3
007 TX FRAME : OPCODE=9, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=580f2d65, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
payload-4
008 TX FRAME : OPCODE=9, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=94e46661, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
payload-5
009 TX FRAME : OPCODE=9, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=e18fe6cd, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
payload-6
010 TX FRAME : OPCODE=9, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=f442c8b3, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
payload-7
011 TX FRAME : OPCODE=9, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=26d7fe7b, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
payload-8
012 TX FRAME : OPCODE=9, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=4e1848a0, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
payload-9
013 CLOSE CONNECTION AFTER 3.000000 sec
014 TX OCTETS: 89
015 TX OCTETS: 6b
016 TX OCTETS: dd
017 TX OCTETS: 91
018 TX OCTETS: ff
019 TX OCTETS: 1b
020 TX OCTETS: bc
021 TX OCTETS: e8
022 TX OCTETS: 93
023 TX OCTETS: 04
024 TX OCTETS: bc
025 TX OCTETS: f5
026 TX OCTETS: d2
027 TX OCTETS: 5b
028 TX OCTETS: 89
029 RX OCTETS: 8a097061796c6f61642d30
030 RX FRAME : OPCODE=10, FIN=True, RSV=0, PAYLOAD-LEN=9, MASKED=False, MASK=None
payload-0
031 TX OCTETS: 89
032 TX OCTETS: 57
033 TX OCTETS: 29
034 TX OCTETS: c7
035 TX OCTETS: be
036 TX OCTETS: 27
037 TX OCTETS: 48
038 TX OCTETS: be
039 TX OCTETS: d2
040 TX OCTETS: 38
041 TX OCTETS: 48
042 TX OCTETS: a3
043 TX OCTETS: 93
044 TX OCTETS: 66
045 TX OCTETS: 89
046 RX OCTETS: 8a097061796c6f61642d31
047 RX FRAME : OPCODE=10, FIN=True, RSV=0, PAYLOAD-LEN=9, MASKED=False, MASK=None
payload-1
048 TX OCTETS: 89
049 TX OCTETS: 42
050 TX OCTETS: 9d
051 TX OCTETS: a2
052 TX OCTETS: a5
053 TX OCTETS: 32
054 TX OCTETS: fc
055 TX OCTETS: db
056 TX OCTETS: c9
057 TX OCTETS: 2d
058 TX OCTETS: fc
059 TX OCTETS: c6
060 TX OCTETS: 88
061 TX OCTETS: 70
062 TX OCTETS: 89
063 RX OCTETS: 8a097061796c6f61642d32
064 RX FRAME : OPCODE=10, FIN=True, RSV=0, PAYLOAD-LEN=9, MASKED=False, MASK=None
payload-2
065 TX OCTETS: 89
066 TX OCTETS: 83
067 TX OCTETS: 70
068 TX OCTETS: ce
069 TX OCTETS: 70
070 TX OCTETS: f3
071 TX OCTETS: 11
072 TX OCTETS: b7
073 TX OCTETS: 1c
074 TX OCTETS: ec
075 TX OCTETS: 11
076 TX OCTETS: aa
077 TX OCTETS: 5d
078 TX OCTETS: b0
079 TX OCTETS: 89
080 RX OCTETS: 8a097061796c6f61642d33
081 RX FRAME : OPCODE=10, FIN=True, RSV=0, PAYLOAD-LEN=9, MASKED=False, MASK=None
payload-3
082 TX OCTETS: 89
083 TX OCTETS: 58
084 TX OCTETS: 0f
085 TX OCTETS: 2d
086 TX OCTETS: 65
087 TX OCTETS: 28
088 TX OCTETS: 6e
089 TX OCTETS: 54
090 TX OCTETS: 09
091 TX OCTETS: 37
092 TX OCTETS: 6e
093 TX OCTETS: 49
094 TX OCTETS: 48
095 TX OCTETS: 6c
096 TX OCTETS: 89
097 RX OCTETS: 8a097061796c6f61642d34
098 RX FRAME : OPCODE=10, FIN=True, RSV=0, PAYLOAD-LEN=9, MASKED=False, MASK=None
payload-4
099 TX OCTETS: 89
100 TX OCTETS: 94
101 TX OCTETS: e4
102 TX OCTETS: 66
103 TX OCTETS: 61
104 TX OCTETS: e4
105 TX OCTETS: 85
106 TX OCTETS: 1f
107 TX OCTETS: 0d
108 TX OCTETS: fb
109 TX OCTETS: 85
110 TX OCTETS: 02
111 TX OCTETS: 4c
112 TX OCTETS: a1
113 TX OCTETS: 89
114 RX OCTETS: 8a097061796c6f61642d35
115 RX FRAME : OPCODE=10, FIN=True, RSV=0, PAYLOAD-LEN=9, MASKED=False, MASK=None
payload-5
116 TX OCTETS: 89
117 TX OCTETS: e1
118 TX OCTETS: 8f
119 TX OCTETS: e6
120 TX OCTETS: cd
121 TX OCTETS: 91
122 TX OCTETS: ee
123 TX OCTETS: 9f
124 TX OCTETS: a1
125 TX OCTETS: 8e
126 TX OCTETS: ee
127 TX OCTETS: 82
128 TX OCTETS: e0
129 TX OCTETS: d7
130 TX OCTETS: 89
131 RX OCTETS: 8a097061796c6f61642d36
132 RX FRAME : OPCODE=10, FIN=True, RSV=0, PAYLOAD-LEN=9, MASKED=False, MASK=None
payload-6
133 TX OCTETS: 89
134 TX OCTETS: f4
135 TX OCTETS: 42
136 TX OCTETS: c8
137 TX OCTETS: b3
138 TX OCTETS: 84
139 TX OCTETS: 23
140 TX OCTETS: b1
141 TX OCTETS: df
142 TX OCTETS: 9b
143 TX OCTETS: 23
144 TX OCTETS: ac
145 TX OCTETS: 9e
146 TX OCTETS: c3
147 TX OCTETS: 89
148 RX OCTETS: 8a097061796c6f61642d37
149 RX FRAME : OPCODE=10, FIN=True, RSV=0, PAYLOAD-LEN=9, MASKED=False, MASK=None
payload-7
150 TX OCTETS: 89
151 TX OCTETS: 26
152 TX OCTETS: d7
153 TX OCTETS: fe
154 TX OCTETS: 7b
155 TX OCTETS: 56
156 TX OCTETS: b6
157 TX OCTETS: 87
158 TX OCTETS: 17
159 TX OCTETS: 49
160 TX OCTETS: b6
161 TX OCTETS: 9a
162 TX OCTETS: 56
163 TX OCTETS: 1e
164 TX OCTETS: 89
165 RX OCTETS: 8a097061796c6f61642d38
166 RX FRAME : OPCODE=10, FIN=True, RSV=0, PAYLOAD-LEN=9, MASKED=False, MASK=None
payload-8
167 TX OCTETS: 89
168 TX OCTETS: 4e
169 TX OCTETS: 18
170 TX OCTETS: 48
171 TX OCTETS: a0
172 TX OCTETS: 3e
173 TX OCTETS: 79
174 TX OCTETS: 31
175 TX OCTETS: cc
176 TX OCTETS: 21
177 TX OCTETS: 79
178 TX OCTETS: 2c
179 TX OCTETS: 8d
180 TX OCTETS: 77
181 RX OCTETS: 8a097061796c6f61642d39
182 RX FRAME : OPCODE=10, FIN=True, RSV=0, PAYLOAD-LEN=9, MASKED=False, MASK=None
payload-9
183 TX FRAME : OPCODE=8, FIN=True, RSV=0, PAYLOAD-LEN=2, MASK=9ea6462d, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0x03e8
184 TX OCTETS: 88829ea6462d9d4e
185 RX OCTETS: 880203e8
186 RX FRAME : OPCODE=8, FIN=True, RSV=0, PAYLOAD-LEN=2, MASKED=False, MASK=None
0x03e8
187 TCP DROPPED BY PEER