Intermittent connection issues, CONNECT message not sent in time #1938
RiaanSDivigraph
started this conversation in
General
Replies: 1 comment
-
The CONNECT packet is the very first packet when a connection is made. So, it might not be affected by huge traffic of PUBLISH packets etc. The CONNECT packet is also usually very small because it has no custom payload, so we are talking about a few bytes here. My assumption is that the issue may be located at socket or network level and not in this library at all. |
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
-
Hi MQTTNet community
I'm raising this in a Discussion rather than an Issue, since I have no reproduction steps yet - nothing for you (or even us) to go on at this stage other than what we observe on the machine in question.
We are using HiveMQ Community Edition 2023.9 with a relatively old MQTTNet client (3.0.16) with mutual TLS (certificates broker-side and client-side).
The MQTTNet client is running on .NET Framework 4.6.2.
This works swimmingly on almost all systems where we have tested it. However, on a single VM running Windows Server 2016 we are encountering issues maintaining a stable connection.
I see this in the HiveMQ
event.log
:So it seems our old MQTTnet client might have issues sending a
CONNECT
message in time. I am setting up a test run with logging from inside that client, so we can see if there was an exception that killed aCONNECT
keepalive thread.The client and the broker are on the same machine, hence the IP address of
127.0.0.1
. The VM is running on a VMWare VM.We've tried to reproduce this on a VMWare VM with the same OS running (not sure about Service Packs or updates), with a different BIOS. The problematic machine reported a Phoenix BIOS, where our test machine reports a VMWare UEFI BIOS. But we were unable to reproduce on our test VM - it works fine for us.
We are also working on doing a test run with an upgraded MQTTNet (3.1.2) on a newer .NET Framework (4.8).
Do you have any experience with anything similar?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions