Skip to content

file descriptors / select issue with large number of clients #34

@fgaultier

Description

@fgaultier

With a large number of clients (above 20), some subscribing clients do not receive any message. The issue is related with implementation of the mqtt_sn_select function in mqtt-sn.c file. Consider replacing line 817:

ret = select(sock + 1, &rfd, NULL, NULL, &tv);

with the following:

ret = select(FD_SETSIZE, &rfd, NULL, NULL, &tv);

We tested the change and it works fine

Metadata

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