Closed jmorgade closed 3 months ago
What does the FlashMQ logfile say during the dropping of those connections?
The log was attached.
I can look in more detail later, but I see stuff like this in the log:
username='172.21.0.3,127.0.0.1,192.168.1.199,172.21.0.2'
And
User '' access denied
Can you create a clear case, with proper anonymous or non-anonymous logins clearly defined, and don't make mistakes in address/hostname vs username arguments?
Now I see, It looks like related with the self signed certificate and the subject CN entries I have there ...
Let me review the way I am generating the self signed certificates. The basic script I've been using was working smoothly with other brokers so I must confess I did not pay much attention on this.
However, if there is something wrong with the certificate, still don't quite understand why few connections are accepted.
However, if there is something wrong with the certificate, still don't quite understand why few connections are accepted.
You have overlapping listeners. The clients that are hitting the one with x509 auth get IP addresses from your CN as username. The one that are hitting the other one, get an empty string, and that is not allowed, because you config doesn't allow anonymous.
Oh, my bad, you absolutely right. I missed the anonymous flag ... now is working like a charm.
Thanks a lot!
Ah, great. So, we'll call it crisis averted ;)
Flashmq randomly drops incoming SSL connections.
Besides the inline logs I share down bellow, I attach the related flasmq.log report.
The test is done with the latest tag (v1.10.0) on a Fedora 39 (Linux 6.7.7-200.fc39.x86_64) but I am facing similar issues after building docker image.
Just in case it helps, I'm using same environment to run similar tests against other MQTT brokers (emqx, hivemq, vernemq, mosquitto) and they seem to run smoothly at this point so I wonder if I am missing any fundamental config setting ? (see flashmq.conf bellow).
FlashMQ running instance
MqttLoadSimulator already reports dropped connections
Similar behavior with other benchmark tools like "mqtt-bechmark"
flashmq.conf
flashmq.log