emqx / mqtt-jmeter

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

Subscribe and publish in one connection #54

Closed Hmm90 closed 5 years ago

Hmm90 commented 5 years ago

Hello following situation.

my broker accepts only one connection to the same time from a client.

Therefore I need to subscribe and publish in one connection.

But actual I have to have two threads (Thread A to subscribe and Thread B to publish)

Every thread needs a MQTT Connect step first and followed by the MQTT Sub (thread A) or MQTT Pub (Thread B).

But in my situation only one connection is allowed and the brokes cuts connection of thread a in case of thread b is executed. For example mqtt.fx creates only on connection for subscribing and publishing.

Is there a possibility or configuration to solve that?

Hmm90 commented 5 years ago

found way to get it working.

hitkik commented 5 years ago

found way to get it working.

@Hmm90 can you share how you got this working. I am in the same boat as you :)

god-pane commented 5 years ago

@Hmm90 can you share how you got this working. I am in the same boat as you :)

Hmm90 commented 5 years ago

Ok, it is not really a solution in general and the issue to share it between connection is still existing.

But in my situation I subscribed immediately after the publish without any delay which seems to fast enough for the broker.

god-pane commented 5 years ago

Thanks