Skip to content
This repository has been archived by the owner on Jan 5, 2020. It is now read-only.

Calling reconnect() in a busy loop spams the network #4

Open
@blkqi

Description

If for some reason the program cannot connect to the MQTT server, it calls reconnect in a busy loop and spams the network.

For example, let's say that the we are wanting to connect to an MQTT server by hostname and the DNS server (temporarily) cannot resolve the hostname. In this case we enter a busy loop calling reconnect() which will continue to query the DNS resolver hundreds or thousands of times per second.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions