emqx / mqtt-jmeter

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

Connection disconnects immediately after subscription #91

Open LiXiaoTian1 opened 3 years ago

LiXiaoTian1 commented 3 years ago

使用该插件订阅取样器,一发出订阅请求后连接就会断开,查看对应日志订阅是成功的,但是订阅后马上就断开连接了(在disconnect之前),如果禁用掉订阅取样器在disconnect之前是不会断开的,而且用其他的工具进行订阅是没问题的,使用的是2.0.2版本 png1

LiXiaoTian1 commented 3 years ago

脚本 这是脚本的结构

jinfahua commented 3 years ago

I find that there is an MQTT DisConnect, which means the connection will be disconnect after pub message. Please disable the MQTT DisConnect sampler.

LiXiaoTian1 commented 3 years ago

I find that there is an MQTT DisConnect, which means the connection will be disconnect after pub message. Please disable the MQTT DisConnect sampler.

禁用掉MQTT DisConnect后结果是一样的

LiXiaoTian1 commented 3 years ago

这是使用其他工具的一次正常的连接过程png2

LiXiaoTian1 commented 3 years ago

问题解决了,相同的脚本我用旧版本1.13.0就没有这个问题了... @jinfahua

jinfahua commented 3 years ago

@chongyuanyin Is it a bug?