Skip to content

Broker Hang on Bad Configuration #2241

Closed
Closed
@PBearson

Description

@PBearson

Mosquitto Version: 2.0.11 (also tested in version 2.0.7 and 1.5)
Platform: Kali 2021.2 and Ubuntu 20.04

There seems to an issue with the broker hanging when the configuration file is given an improper password_file argument. Specifically, it seems like the broker hangs when password_file is given a directory name instead of a file name, for example:

password_file /

You can see from the following screenshot that the broker appears to load the config file, but it does not advance after that.

image

After some debugging, I found that the program appears to get stuck in this loop indefinitely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: mosquitto-brokerStatus: CompletedNothing further to be done with this issue, it can be closed by the requestor or committer.

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions