Autobahn WebSocket Testsuite Report
Autobahn WebSocket

UnknownServer - Case 5.20 : Fail - 3006 ms @ 2021-02-12T11:15:12.658Z

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 differ from any expected.

Expected:
{'OK': [('pong', u'pongme 1!'), ('pong', u'pongme 2!'), ('message', u'fragment1fragment2fragment3fragment4fragment5', False)]}

Observed:
[('message', u'pongme 1!', False), ('message', u'pongme 2!', False), ('message', u'fragment1fragment2fragment3fragment4fragment5', False)]

Case Closing Behavior

The spec requires the connection to be failed cleanly here (UNCLEAN)



Opening Handshake

GET / HTTP/1.1
User-Agent: AutobahnTestSuite/0.8.0-0.10.9
Host: 127.0.0.1:9001
Upgrade: WebSocket
Connection: Upgrade
Pragma: no-cache
Cache-Control: no-cache
Sec-WebSocket-Key: HVta7WBZXJhSQ9ZLG9WcNQ==
Sec-WebSocket-Version: 13
HTTP/1.1 101 WebSocket Protocol Handshake
Upgrade: WebSocket
Connection: Upgrade
Sec-WebSocket-Accept: bw+CwALjC/Z+AEIVQVGM2ALxnpQ=


Closing Behavior

KeyValueDescription
isServerFalseTrue, iff I (the fuzzer) am a server, and the peer is a client.
closedByMeTrueTrue, iff I have initiated closing handshake (that is, did send close first).
failedByMeFalseTrue, 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.
droppedByMeTrueTrue, iff I dropped the TCP connection.
wasCleanFalseTrue, iff full WebSocket closing handshake was performed (close frame sent and received) _and_ the server dropped the TCP (which is its responsibility).
wasNotCleanReasonpeer did not respond (in time) in closing handshakeWhen wasClean == False, the reason what happened.
wasServerConnectionDropTimeoutFalseWhen we are a client, and we expected the server to drop the TCP, but that didn't happen in time, this gets True.
wasOpenHandshakeTimeoutFalseWhen performing the opening handshake, but the peer did not finish in time, this gets True.
wasCloseHandshakeTimeoutTrueWhen we initiated a closing handshake, but the peer did not respond in time, this gets True.
localCloseCodeNoneThe close code I sent in close frame (if any).
localCloseReasonNoneThe close reason I sent in close frame (if any).
remoteCloseCodeNoneThe close code the peer sent me in close frame (if any).
remoteCloseReasonNoneThe close reason the peer sent me in close frame (if any).


Wire Statistics

Octets Received by Chop Size

Chop SizeCountOctets
11111
58158
1381138
Total3207

Octets Transmitted by Chop Size

Chop SizeCountOctets
616
157105
2401240
Total9351

Frames Received by Opcode

OpcodeCount
13
Total3

Frames Transmitted by Opcode

OpcodeCount
04
11
81
92
Total8


Wire Log

000 TX OCTETS: 474554202f20485454502f312e310d0a557365722d4167656e743a204175746f6261686e5465737453756974652f302e382e
               302d302e31302e390d0a486f7374 ...
001 RX OCTETS: 485454502f312e312031303120576562536f636b65742050726f746f636f6c2048616e647368616b650d0a55706772616465
               3a20576562536f636b65740d0a43 ...
002 TX FRAME : OPCODE=1, FIN=False, RSV=0, PAYLOAD-LEN=9, MASK=c1dedf01, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=True
               fragment1
003 TX OCTETS: 0189c1dedf01a7acbe66acbbb175f0
004 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=9, MASK=a5a9fe62, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=True
               fragment2
005 TX FRAME : OPCODE=9, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=8d267240, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=True
               pongme 1!
006 DELAY 1.000000 sec for TAG None
007 TX OCTETS: 0089a5a9fe62c3db9f05c8cc901697
008 TX OCTETS: 89898d267240fd491c27e0435271ac
009 RX OCTETS: 8109706f6e676d65203121
010 RX FRAME : OPCODE=1, FIN=True, RSV=0, PAYLOAD-LEN=9, MASKED=False, MASK=None
               pongme 1!
011 DELAY TIMEOUT on TAG None
012 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=9, MASK=5961260c, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=True
               fragment3
013 TX OCTETS: 00895961260c3f13476b340448786a
014 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=9, MASK=ae80389c, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=True
               fragment4
015 TX FRAME : OPCODE=9, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=f11fd793, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=True
               pongme 2!
016 TX FRAME : OPCODE=0, FIN=True, RSV=0, PAYLOAD-LEN=9, MASK=ebb38518, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=True
               fragment5
017 CLOSE CONNECTION AFTER 1.000000 sec
018 TX OCTETS: 0089ae80389cc8f259fbc3e556e89a
019 TX OCTETS: 8989f11fd7938170b9f49c7af7a1d0
020 TX OCTETS: 8089ebb385188dc1e47f86d6eb6cde
021 RX OCTETS: 8109706f6e676d65203221812d667261676d656e7431667261676d656e7432667261676d656e7433667261676d656e743466
               7261676d656e7435
022 RX FRAME : OPCODE=1, FIN=True, RSV=0, PAYLOAD-LEN=9, MASKED=False, MASK=None
               pongme 2!
023 RX FRAME : OPCODE=1, FIN=True, RSV=0, PAYLOAD-LEN=45, MASKED=False, MASK=None
               fragment1fragment2fragment3fragment4fragment5
024 CLOSING CONNECTION
025 TX FRAME : OPCODE=8, FIN=True, RSV=0, PAYLOAD-LEN=0, MASK=7d43312b, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
026 TX OCTETS: 88807d43312b
027 TCP DROPPED BY ME