lluv-websocket - Case 5.20 : Pass - 1046 ms @ 2016-03-22T16:32:39.734Z
Case Description
Same as Case 5.19, but send all frames with SYNC = True.
Note, this does not change the octets sent in any way, only how the stream
is chopped up on the wire.
Case Expectation
Same as Case 5.19. Implementations must be agnostic to how
octet stream is chopped up on wire (must be TCP clean).
Case Outcome
Actual events match at least one expected.
Expected:
{'OK': [('pong', u'pongme 1!'), ('pong', u'pongme 2!'), ('message', u'fragment1fragment2fragment3fragment4fragment5', False)]}
Observed:
[('pong', u'pongme 1!'), ('pong', u'pongme 2!'), ('message', u'fragment1fragment2fragment3fragment4fragment5', False)]
Case Closing Behavior
Connection was properly closed (OK)
GET /runCase?case=64&agent=lluv-websocket HTTP/1.1 Host: 127.0.0.1:9001 Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: BqdtTgRDaIYL47fHAwRGCA== Sec-WebSocket-Version: 13 Sec-WebSocket-Protocol: echo Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
HTTP/1.1 101 Switching Protocols Server: AutobahnTestSuite/0.7.1-0.10.0 Upgrade: WebSocket Connection: Upgrade Sec-WebSocket-Accept: 3/eCOcHFBLmqLwDUHx0xa+zbnAI=
Key | Value | Description |
isServer | True | 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 | True | True, iff I dropped the TCP connection. |
wasClean | True | True, iff full WebSockets 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 |
8 | 1 | 8 |
15 | 2 | 30 |
75 | 1 | 75 |
289 | 1 | 289 |
Total | 5 | 402 |
Chop Size | Count | Octets |
4 | 1 | 4 |
11 | 7 | 77 |
169 | 1 | 169 |
Total | 9 | 250 |
Opcode | Count |
0 | 4 |
1 | 1 |
8 | 1 |
10 | 2 |
Total | 8 |
Opcode | Count |
0 | 4 |
1 | 1 |
8 | 1 |
9 | 2 |
Total | 8 |
000 RX OCTETS: 474554202f72756e436173653f636173653d3634266167656e743d6c6c75762d776562736f636b657420485454502f312e31
0d0a486f73743a203132372e302e ...
001 TX OCTETS: 485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a5365727665723a204175746f6261686e
5465737453756974652f302e372e ...
002 TX FRAME : OPCODE=1, FIN=False, RSV=0, PAYLOAD-LEN=9, MASK=None, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=True
fragment1
003 TX OCTETS: 0109667261676d656e7431
004 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=9, MASK=None, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=True
fragment2
005 TX FRAME : OPCODE=9, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=None, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=True
pongme 1!
006 DELAY 1.000000 sec for TAG None
007 TX OCTETS: 0009667261676d656e7432
008 TX OCTETS: 8909706f6e676d65203121
009 RX OCTETS: 8a89d88a05aba8e56bccb5ef259af9
010 RX FRAME : OPCODE=10, FIN=True, RSV=0, PAYLOAD-LEN=9, MASKED=True, MASK=6438386130356162
pongme 1!
011 DELAY TIMEOUT on TAG None
012 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=9, MASK=None, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=True
fragment3
013 TX OCTETS: 0009667261676d656e7433
014 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=9, MASK=None, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=True
fragment4
015 TX FRAME : OPCODE=9, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=None, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=True
pongme 2!
016 TX FRAME : OPCODE=0, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=None, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=True
fragment5
017 CLOSE CONNECTION AFTER 1.000000 sec
018 TX OCTETS: 0009667261676d656e7434
019 TX OCTETS: 8909706f6e676d65203221
020 RX OCTETS: 8a8994710a32e41e6455f9142a00b5
021 RX FRAME : OPCODE=10, FIN=True, RSV=0, PAYLOAD-LEN=9, MASKED=True, MASK=3934373130613332
pongme 2!
022 TX OCTETS: 8009667261676d656e7435
023 RX OCTETS: 0189dffc08d2b98e69b5b29966a6ee0089dd5b052abb29644db03e6b5eef008926e90567409b64004b8c6b13150089f14cc9
c1973ea8a69c29a7b5c58089bd0a ...
024 RX FRAME : OPCODE=1, FIN=False, RSV=0, PAYLOAD-LEN=9, MASKED=True, MASK=6466666330386432
fragment1
025 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=9, MASKED=True, MASK=6464356230353261
fragment2
026 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=9, MASKED=True, MASK=3236653930353637
fragment3
027 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=9, MASKED=True, MASK=6631346363396331
fragment4
028 RX FRAME : OPCODE=0, FIN=True, RSV=0, PAYLOAD-LEN=9, MASKED=True, MASK=6264306132356662
fragment5
029 TX FRAME : OPCODE=8, FIN=True, RSV=0, PAYLOAD-LEN=2, MASK=None, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0x03e8
030 TX OCTETS: 880203e8
031 RX OCTETS: 8882f05ab6f7f3b2
032 RX FRAME : OPCODE=8, FIN=True, RSV=0, PAYLOAD-LEN=2, MASKED=True, MASK=6630356162366637
0x03e8
033 TCP DROPPED BY ME