hivemq-mqtt-client icon indicating copy to clipboard operation
hivemq-mqtt-client copied to clipboard

send message block

Open HiwayChe opened this issue 3 years ago • 2 comments

send thread blocks here at line 83: image

this is how client creates: image

mtt broker I used is Emqx4.2.2, I did not find error message in emqx error log. Is this a hivemq client problem or emqx problem? what should I do to find solutions?

HiwayChe avatar Dec 28 '21 02:12 HiwayChe

hivemq client version is 1.2.2

HiwayChe avatar Dec 28 '21 02:12 HiwayChe

Hi @HiwayChe as you call a blocking operation (CompletableFuture.get()), your current thread is blocked until the operation completes. The publish operation completes if the client receives the acknowledgement packet from the server.

what should I do to find solutions?

I would suggest looking at which packets are sent/received. For example you could use Wireshark on the same machine where the client is running on and filter for mqtt.

SgtSilvio avatar Dec 29 '21 16:12 SgtSilvio

Hi @HiwayChe - since this issue has gone stale could you let us know if it's still an issue for you? We've had quite a few releases since then. If it is, could you try it with the latest version of the client?

Thanks - let us know. We'd be more than happy to pick up the investigation on this.

pglombardo avatar Mar 05 '24 13:03 pglombardo

Hi @HiwayChe - given the age of this issue I'll close it out. If it's still an issue for you let us know. We'd be happy to help out!

pglombardo avatar Mar 08 '24 10:03 pglombardo