mqttMultimeter icon indicating copy to clipboard operation
mqttMultimeter copied to clipboard

The connection is terminated if you don't use the application for about 10 minutes

Open INTERNALINTERFERENCE opened this issue 3 years ago • 9 comments

Order of my actions:

  1. connect to my host
  2. subscribe to topics
  3. leave the computer for 10 minutes
  4. after 10 minutes, the connection is terminated

if I use the app, the connection will never terminated

INTERNALINTERFERENCE avatar Feb 12 '22 10:02 INTERNALINTERFERENCE

What exactly do you mean "don't use"? Are you not using your PC by not using Mouse etc. or do you mean that you are not subscribing or publishing in the App only but still working with your PC?

chkr1011 avatar Feb 12 '22 12:02 chkr1011

Also please open and activate the Packet Inspector and let me know if the broker is sending a DISCONNECT before the connection is closed.

chkr1011 avatar Feb 12 '22 12:02 chkr1011

What exactly do you mean "don't use"? Are you not using your PC by not using Mouse etc. or do you mean that you are not subscribing or publishing in the App only but still working with your PC?

I mean I don't subscribe, publish etc. I run the app and look at incoming messages

INTERNALINTERFERENCE avatar Feb 12 '22 12:02 INTERNALINTERFERENCE

i don't use my mouse

  1. subscribe
  2. go to messages view
  3. disconnect after 10-20 minutes if u don't use the app

INTERNALINTERFERENCE avatar Feb 12 '22 12:02 INTERNALINTERFERENCE

What Broker do you use? Which protocol version? Keep Alive enabled or 0?

chkr1011 avatar Feb 12 '22 16:02 chkr1011

  1. my own
  2. tcp
  3. I changed client options builder a little bit so: .WithKeepAlivePeriod( TimeSpan.FromSeconds( int.MaxValue ) ); I want the application to work endlessly

INTERNALINTERFERENCE avatar Feb 14 '22 07:02 INTERNALINTERFERENCE

int.MaxValue - it is about 20+ days it seemed to me that this was enough, but, as it turned out, no. Mqtt explorer works fine with my broker

INTERNALINTERFERENCE avatar Feb 14 '22 07:02 INTERNALINTERFERENCE

Please open and enable the log page and show me the content right before the connection gets closed.

chkr1011 avatar Feb 14 '22 19:02 chkr1011

@INTERNALINTERFERENCE Do you use macOS? If so, we probably found the reason.

chkr1011 avatar Sep 13 '22 06:09 chkr1011