krylovsk / mqtt-benchmark

MQTT broker benchmarking tool
Apache License 2.0
293 stars 81 forks source link

Network Error : %!s(<nil>) #22

Closed demian85 closed 2 years ago

demian85 commented 3 years ago

No idea what this is. I can successfully connect programmatically using a node.js script with the same parameters... What's wrong?

./mqtt-benchmark --broker "tcp://staging.broker.aritronix.com:8883" --clients 1 --qos 1 --count 50 --username *** --password "***"
2021/06/30 10:31:23 Starting client  0
2021/06/30 10:31:24 CLIENT 0 had error connecting to the broker: Network Error : %!s(<nil>)

Thanks.

demian85 commented 3 years ago

Does this support SSL/TLS?

demian85 commented 3 years ago

Okay, NO. I disabled TLS and it works. But somehow I cannot test with 1000 clients, some of them return this error: 2021/06/30 10:55:23 CLIENT 989 had error connecting to the broker: Network Error : dial tcp: lookup staging.broker.aritronix.com: no such host Is it because of the connection limits? I'm on Mac

krylovsk commented 3 years ago

The error looks like a DNS resolution problem. You might indeed be hitting the OS connections limit, see #19.