eclipse-paho / eclipse-paho/paho.mqtt.python
due to select() paho-mqtt is unable to connect if more than 1024 file handle are used
Open
Status: Available
Type: Enhancement
- Dominant language
- Python
- Stars
- 2.4k
- Forks
- 742
- Avg merge
- 12d 48m
- Merged PRs (30d)
- 1
Description
Problem description:
Python version: 3.9
Paho-MQTT version: 1.6.1
When using 1000 threads, each thread as a client to connect to the MQTT service, due to the _socketpair_compat function in loop_start, only a few hundred clients can be connected, and all clients cannot be connected successfully.
After adjusting the system file handle number to 65535, it still fails to connect.
However, if the _socketpair_compat function is commented out, all clients can connect successfully.
Question:
Is there any way to solve this problem?
Contributor guide
Assessment
This issue has not been assessed yet.