Autobahn WebSockets Testsuite Report
Autobahn WebSockets

Microsoft-HTTPAPI/2.0 - Case 3.4 : Fail - 2011 ms @ 2021-01-02T08:45:34.151Z

Case Description

Send small text message, then send again with RSV = 4, then send Ping. Octets are sent in octet-wise chops.

Case Expectation

Echo for first message is received, but then connection is failed immediately, since RSV must be 0, when no extension defining RSV meaning has been negotiated. The Pong is not received.

Case Outcome

Actual events differ from any expected.

Expected:
{'NON-STRICT': [], 'OK': [('message', u'Hello, world!', False)]}

Observed:
[('message', u'Hello, world!', False), ('message', u'Hello, world!', False), ('pong', u'')]

Case Closing Behavior

The connection was failed by the wrong endpoint (FAILED)



Opening Handshake

GET / HTTP/1.1
User-Agent: AutobahnTestSuite/0.7.5-0.10.9
Host: 127.0.0.1:9001
Upgrade: WebSocket
Connection: Upgrade
Pragma: no-cache
Cache-Control: no-cache
Sec-WebSocket-Key: rYTTzSahr6n3hmw3C+9ARQ==
Sec-WebSocket-Version: 13
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Server: Microsoft-HTTPAPI/2.0
Connection: Upgrade
Sec-WebSocket-Accept: jsIOFcI1qm19AaxUIi+pFb5//oc=
Date: Sat, 02 Jan 2021 16:45:34 CST


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).
failedByMeTrueTrue, 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 WebSockets closing handshake was performed (close frame sent and received) _and_ the server dropped the TCP (which is its responsibility).
wasNotCleanReasonserver did not drop TCP connection (in time)When wasClean == False, the reason what happened.
wasServerConnectionDropTimeoutTrueWhen 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.
wasCloseHandshakeTimeoutFalseWhen we initiated a closing handshake, but the peer did not respond in time, this gets True.
localCloseCode1001The close code I sent in close frame (if any).
localCloseReasonGoing AwayThe 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
224
15230
1971197
Total5231

Octets Transmitted by Chop Size

Chop SizeCountOctets
14444
18118
2401240
Total46302

Frames Received by Opcode

OpcodeCount
12
81
101
Total4

Frames Transmitted by Opcode

OpcodeCount
12
81
91
Total4


Wire Log

000 TX OCTETS: 474554202f20485454502f312e310d0a557365722d4167656e743a204175746f6261686e5465737453756974652f302e372e
               352d302e31302e390d0a486f7374 ...
001 RX OCTETS: 485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a557067726164653a20776562736f636b
               65740d0a5365727665723a204d69 ...
002 TX FRAME : OPCODE=1, FIN=True, RSV=0, PAYLOAD-LEN=13, MASK=6c2e3be6, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
               Hello, world!
003 TX OCTETS: 81
004 TX FRAME : OPCODE=1, FIN=True, RSV=4, PAYLOAD-LEN=13, MASK=adb38ead, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
               Hello, world!
005 TX FRAME : OPCODE=9, FIN=True, RSV=0, PAYLOAD-LEN=0, MASK=5830337a, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=1, SYNC=False
006 FAIL CONNECTION AFTER 1.000000 sec
007 TX OCTETS: 8d
008 TX OCTETS: 6c
009 TX OCTETS: 2e
010 TX OCTETS: 3b
011 TX OCTETS: e6
012 TX OCTETS: 24
013 TX OCTETS: 4b
014 TX OCTETS: 57
015 TX OCTETS: 8a
016 TX OCTETS: 03
017 TX OCTETS: 02
018 TX OCTETS: 1b
019 TX OCTETS: 91
020 TX OCTETS: 03
021 TX OCTETS: 5c
022 TX OCTETS: 57
023 TX OCTETS: 82
024 TX OCTETS: 4d
025 TX OCTETS: c1
026 TX OCTETS: 8d
027 TX OCTETS: ad
028 TX OCTETS: b3
029 TX OCTETS: 8e
030 TX OCTETS: ad
031 TX OCTETS: e5
032 TX OCTETS: d6
033 TX OCTETS: e2
034 TX OCTETS: c1
035 TX OCTETS: c2
036 TX OCTETS: 9f
037 TX OCTETS: ae
038 TX OCTETS: da
039 TX OCTETS: c2
040 TX OCTETS: c1
041 TX OCTETS: e2
042 TX OCTETS: c9
043 TX OCTETS: 8c
044 TX OCTETS: 89
045 TX OCTETS: 80
046 TX OCTETS: 58
047 TX OCTETS: 30
048 TX OCTETS: 33
049 RX OCTETS: 810d48656c6c6f2c20776f726c6421
050 RX FRAME : OPCODE=1, FIN=True, RSV=0, PAYLOAD-LEN=13, MASKED=False, MASK=None
               Hello, world!
051 TX OCTETS: 7a
052 RX OCTETS: 810d48656c6c6f2c20776f726c6421
053 RX FRAME : OPCODE=1, FIN=True, RSV=0, PAYLOAD-LEN=13, MASKED=False, MASK=None
               Hello, world!
054 RX OCTETS: 8a00
055 RX FRAME : OPCODE=10, FIN=True, RSV=0, PAYLOAD-LEN=0, MASKED=False, MASK=None
056 FAILING CONNECTION
057 TX FRAME : OPCODE=8, FIN=True, RSV=0, PAYLOAD-LEN=12, MASK=23f2b566, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
               0x03e9476f696e672041776179
058 TX OCTETS: 888c23f2b566201bf2094a9cd2466285d41f
059 RX OCTETS: 8800
060 RX FRAME : OPCODE=8, FIN=True, RSV=0, PAYLOAD-LEN=0, MASKED=False, MASK=None
061 TCP DROPPED BY ME