You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a asp.net core app shuts down gracefully, the client connections are closed with reason MqttClientDisconnectOptionsReason.NormalDisconnection.
Which component is your bug related to?
Server
Expected behavior
When a graceful shutdown happens, the client connections should be closed with MqttClientDisconnectOptionsReason.ServerShuttingDown instead.
Sending this reason would make distinction between conditions more easy, f.e. ServerShuttingDown could be used by the client to try reconnecting at a later time (or never).
Describe the bug
When a asp.net core app shuts down gracefully, the client connections are closed with reason
MqttClientDisconnectOptionsReason.NormalDisconnection
.Which component is your bug related to?
Expected behavior
When a graceful shutdown happens, the client connections should be closed with
MqttClientDisconnectOptionsReason.ServerShuttingDown
instead.Sending this reason would make distinction between conditions more easy, f.e.
ServerShuttingDown
could be used by the client to try reconnecting at a later time (or never).Additional context / logging
Hosted service is added here: ServiceCollectionExtensions.cs#L75
Shutdown is observed here: MqttHostedServer.cs#L28
Connections are closed here: MqttServer.cs#L295
The text was updated successfully, but these errors were encountered: