MQTT
MQTT SUBSCRIBE
# Server-side
hello
# Send a DISCONNECT with remaining_length=2 after the PUBLISH.
# MQTT 3.1.1 s. 3.14.1 requires DISCONNECT to have remaining_length == 0.
# Curl must reject this with CURLE_WEIRD_SERVER_REPLY.
DISCONNECT-malformed TRUE
# Client-side
mqtt
mqtt
MQTT reject DISCONNECT with nonzero remaining_length
mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER
# Verify data after the test has been "shot"
s/^(.* 00044d5154540402003c000c6375726c).*/$1/
client CONNECT 18 00044d5154540402003c000c6375726c
server CONNACK 2 20020000
client SUBSCRIBE 9 000100043232303700
server SUBACK 3 9003000100
server PUBLISH c 300c00043232303768656c6c6f0a
server DISCONNECT-malformed 2 e0020000
# 8 is CURLE_WEIRD_SERVER_REPLY
8