emqx / mqtt-jmeter

MQTT JMeter Plugin
https://www.emqx.com/en
Apache License 2.0
447 stars 193 forks source link

The specified number of reconnection attempts in "MQTT Connect Sampler" does not work #149

Open WaldemarWldmrvch opened 8 months ago

WaldemarWldmrvch commented 8 months ago

Hi! I need to add 1 reconnection attempt for each of the connections to my script. After running the script with 5 connections, after a while I observe in Wireshark that the connection of the first stream disappears, then reconnection occurs (a fragment of traffic attached), but after the handshake jmeter sends a FIN packet. After that, jmeter tries to connect again and the FIN packet is sent again after the handshake. This happens indefinitely. I thought that if I set Reconnect attempts max = 1, then there should have been 1 reconnection attempt, not an infinite number.

Could you explain to me if I have set the settings correctly in the connection creation sampler? I would also like to get an answer to the following question: can reconnection occur with loss of client data (login, password, ClientID)? There is a suspicion that this is happening (according to the development team).

Thank you in advance for your help. MQTT_Connect_CONFIG Wireshark_fragment