mirror of
https://github.com/curl/curl.git
synced 2026-06-18 20:25:38 +03:00
- `N byte` -> `N-byte` or `N bytes`. - INTERNALS.md: language tweaks. - schannel: language tweak in comment/error message. - socks_gssapi, socks_sspi: simplify composing an error message. (at a cost of 8 extra constant string bytes.) - m4/curl-compilers.m4: fix typo in link (in comment). - contrithanks.sh: fix indent, drop stray `;` terminator. - lib, src, tests: drop/fix a bunch of badwords. - fix typos in comments. - fix indent, stray spaces. Some of these spotted by GitHub Code Quality and Copilot Closes #22009
59 lines
1.1 KiB
XML
59 lines
1.1 KiB
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
MQTT
|
|
MQTT SUBSCRIBE
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<data nocheck="yes">
|
|
hello
|
|
</data>
|
|
|
|
# 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.
|
|
<servercmd>
|
|
DISCONNECT-malformed TRUE
|
|
</servercmd>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<features>
|
|
mqtt
|
|
</features>
|
|
<server>
|
|
mqtt
|
|
</server>
|
|
<name>
|
|
MQTT reject DISCONNECT with nonzero remaining_length
|
|
</name>
|
|
<command option="binary-trace">
|
|
mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<strippart>
|
|
s/^(.* 00044d5154540402003c000c6375726c).*/$1/
|
|
</strippart>
|
|
<protocol>
|
|
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
|
|
</protocol>
|
|
|
|
# 8 is CURLE_WEIRD_SERVER_REPLY
|
|
<errorcode>
|
|
8
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|