hivemq / hivemq-mqtt-client

HiveMQ MQTT Client is an MQTT 5.0 and MQTT 3.1.1 compatible and feature-rich high-performance Java client library with different API flavours and backpressure support
https://hivemq.github.io/hivemq-mqtt-client/
Apache License 2.0
847 stars 158 forks source link

send message block #518

Closed HiwayChe closed 6 months ago

HiwayChe commented 2 years ago

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 commented 2 years ago

hivemq client version is 1.2.2

SgtSilvio commented 2 years ago

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.

pglombardo commented 6 months ago

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 commented 6 months ago

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!