Skip to content

Infinite loop in mqtt #20815

@cmeister2

Description

@cmeister2

I did this

In one tab:

nc -l 127.0.0.1 1883 -c 'printf "\x91\x02"'

In another tab:

docker run --rm --network host curlimages/curl:8.18.0 -v mqtt://127.0.0.1/H

Observe that netcat returns immediately, but curl enters an infinite loop until forcefully terminated:

* mqtt_doing: state [2]
* mqtt_doing: state [2]
* mqtt_doing: state [2]
* mqtt_doing: state [2]
* mqtt_doing: state [2]
* mqtt_doing: state [2]
* mqtt_doing: state [2]
* mqtt_doing: state [2]
* mqtt_doing: state [2]
* mqtt_doing: state [2]
* mqtt_doing: state [2]
* mqtt_doing: state [2]
* mqtt_doing: state [2]
^C
got 3 SIGTERM/SIGINTs, forcefully exiting

I expected the following

curl to not enter an infinite loop

curl/libcurl version

curl 8.18.0 (and DEV)

operating system

WSL / ubi9

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions