]> git.ipfire.org Git - thirdparty/curl.git/commit
mqtt: improve the state machine
authorDaniel Stenberg <daniel@haxx.se>
Thu, 16 Apr 2020 11:20:52 +0000 (13:20 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 20 Apr 2020 06:09:33 +0000 (08:09 +0200)
commit5811beba391baefad41cd6f8f4fa4e3862098813
tree572fc2d609408300d6d4946476d5f2f41d09e96e
parentd1a2816b4128faa8ebc50ce93285c7364652856e
mqtt: improve the state machine

To handle PUBLISH before SUBACK and more.

Updated the existing tests and added three new ones.

Reported-by: Christoph Krey
Bug: https://curl.haxx.se/mail/lib-2020-04/0021.html
Closes #5246
lib/mqtt.c
lib/mqtt.h
tests/data/Makefile.inc
tests/data/test1190
tests/data/test1191
tests/data/test1192
tests/data/test1193
tests/data/test1194 [new file with mode: 0644]
tests/data/test1195 [new file with mode: 0644]
tests/data/test1196 [new file with mode: 0644]
tests/server/mqttd.c