dotnet / dotnet/MQTTnet

Sometime the client can't connecte to server even if the MqttConnectionValidate method finished

Open
#1,901 5 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C#
Stars
5.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

### Describe your question
I tested the client(using the MQTTX) and the server revently. The client can't connecte the server without any error _**sometimes**_, and When I test the Broker with breakpoint, I found that the MqttConnectionValidate method have finished and execute the code 'c.ReasonCode = MqttConnectReasonCode.Success;' in fact. I'm not sure the probem is a bug or a usage mistake.

### Which project is your question related to?

- Server

### Part of My Code
![code](https://github.com/dotnet/MQTTnet/assets/31022351/b7b16a27-48e9-496c-b714-3396a520692c)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the intermittent connection failure with MQTTX and inspect the server flow around MqttConnectionValidate and the assignment of MqttConnectReasonCode.Success. The issue names no source file or test, so first identify the relevant connection-handling entry point and add or run a reproduction before determining what done means.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
22/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.