question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Client disconnection occurs on debugging the application

See original GitHub issue

I ma new to .net as well as MQTTnet. I am using the following client options for an IMqttClient, it connects to my AWS endpoint but the connection resets when I try to debug the application var clientOptions = new MqttClientOptionsBuilder() .WithTcpServer(IoTEndPoint, Port) .WithTls(new MqttClientOptionsBuilderTlsParameters { UseTls = true, Certificates = certs }) .Build();

Any solution to this will be highly appreciated

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
akhtarusafzaicommented, Jan 27, 2021

The solution is there, I solved it with giving .WithKeepAlivePeriod(new TimeSpan(0, 0, 0, 0, Timeout.Infinite)) to the client options

1reaction
akhtarusafzaicommented, Jan 27, 2021

Have you seen https://github.com/chkr1011/MQTTnet/wiki/Client#connecting-with-amazon-aws and looked at it?

Yes I have, But I am not using websockets, I am connecting to the endpoint with certificates. I am able to connect and do basic pub sub in a go, but the client disconnects after some time interval. I noticed it while debugging my application. There is no issue with either the library or the way I am using it. I think there is some time span which is unknown to me which disconnects the client after some time

Read more comments on GitHub >

github_iconTop Results From Across the Web

Client disconnection occurs on debugging the application
I ma new to .net as well as MQTTnet. I am using the following client options for an IMqttClient, it connects to my...
Read more >
Issues with debugger suddenly and eradically disconecting.
Hey everyone, ever since updating to 2.3.2 I have had issues with the debugger suddenly resuming the game despite being paused at a...
Read more >
Unable to start debugging because the object invoked has ...
This may be a possible answer for the problem. Some from the answer: Check which files were changed (why and how) after update...
Read more >
Wireless AC Clients Randomly Disconnect
Users are being randomly disconnected from the wireless APs, all users are not disconnected at the same time. When Windows clients are disconnected...
Read more >
Managed Debugging Assistant 'DisconnectedContext'
Managed Debugging Assistant 'DisconnectedContext' : 'Transition into COM. ... error: The object invoked has disconnected from its clients.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found