Skip to content

mosquitto_connect_async() 这个函数内部是阻塞的 #1

@hevake

Description

@hevake

https://github.com/cpp-main/cbox/blob/9bdb07d28252885a987cf09a84eef0e141a9fad1/src/mqtt/mqtt_client.c#L289C10-L289C35

它内部不是纯异步的,在对域名做解析的过程还是阻塞式的调用。
遇到网络环境不好的时候,会阻塞Loop循环。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions