MQTT: Configure quiesceTimeout in disconnectForcibly() #10093
Unanswered
leonard2901
asked this question in
Q&A
Replies: 1 comment
-
Converted this discussion into an issue: #10095. Let's continue from there! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I use spring-integration-mqtt (phao3) to communicate with a Mosquitto instance. For integration testing, I start Mosquitto using Testcontainers.
This generally works fine, but the tests encounter a 30-second timeout when the client attempts to disconnect, as the container has already been stopped. I have looked through the code, especially the
doStop()
method inMqttPahoMessageDrivenChannelAdapter
. Therethis.client.disconnectForcibly(getDisconnectCompletionTimeout());
is called. In this overload the defaultQUIESCE_TIMEOUT
of 30 seconds is used.In my tests I would like to just disconnect immediately and discard any potentially pending messages.
Is there a way to configure the quiesceTimeout or any other way to disconnect without a timeout?
Any help is appreciated! :)
Beta Was this translation helpful? Give feedback.
All reactions