You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use Locust and Paho-MQTT to spawn multiple clients to load-test an IoT application. It works as expected for ~60Kb payloads, but we had problems sending heavier messages. The error rises at ~6000 requests.
We could not reproduce the error using the Client without gevent
We could not reproduce the error using a non-TLS connection
Do you know what's going on? Thanks in advance!
Exception in thread Thread-1 (_thread_main):
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_innerself.run()
File "/usr/lib/python3.11/threading.py", line 975, in runself._target(*self._args, **self._kwargs)
File "venv/lib/python3.11/site-packages/paho/mqtt/client.py", line 3591, in _thread_mainself.loop_forever(retry_first_connection=True)
File "venv/lib/python3.11/site-packages/paho/mqtt/client.py", line 1756, in loop_forever
rc =self._loop(timeout)
^^^^^^^^^^^^^^^^^^^
File "venv/lib/python3.11/site-packages/paho/mqtt/client.py", line 1181, in _loop
rc =self.loop_write()
^^^^^^^^^^^^^^^^^
File "venv/lib/python3.11/site-packages/paho/mqtt/client.py", line 1577, in loop_write
rc =self._packet_write()
^^^^^^^^^^^^^^^^^^^^
File "venv/lib/python3.11/site-packages/paho/mqtt/client.py", line 2464, in _packet_write
write_length =self._sock_send(
^^^^^^^^^^^^^^^^
File "venv/lib/python3.11/site-packages/paho/mqtt/client.py", line 649, in _sock_sendreturnself._sock.send(buf)
^^^^^^^^^^^^^^^^^^^^
File "venv/lib/python3.11/site-packages/gevent/ssl.py", line 508, in sendreturnself._sslobj.write(data)
^^^^^^^^^^^^^^^^^^^^^^^^ssl.SSLError: [SSL: BAD_LENGTH] bad length (_ssl.c:2423)
Environment
Description:
We use Locust and Paho-MQTT to spawn multiple clients to load-test an IoT application. It works as expected for ~60Kb payloads, but we had problems sending heavier messages. The error rises at ~6000 requests.
Do you know what's going on? Thanks in advance!
What I've run:
Reproducible example using mosquitto test broker: https://test.mosquitto.org
The text was updated successfully, but these errors were encountered: