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
I did this
In one tab:
nc -l 127.0.0.1 1883 -c 'printf "\x91\x02"'In another tab:
Observe that netcat returns immediately, but curl enters an infinite loop until forcefully terminated:
I expected the following
curl to not enter an infinite loop
curl/libcurl version
curl 8.18.0 (and DEV)
operating system
WSL / ubi9