1883 in a weak network environment the mqtt broker is unable to detect disconnections (#1891)

* Add new setting

* Align keep alive handling with RFC

Only completely sent packets are treated as keep alive

* Update ReleaseNotes.md
This commit is contained in:
Christian
2023-12-07 17:49:03 +01:00
committed by GitHub
parent f3499013f4
commit 4df06980a1
7 changed files with 61 additions and 61 deletions
@@ -107,13 +107,6 @@ namespace MQTTnet.Server
return;
}
if (connection.ChannelAdapter.IsReadingPacket)
{
// The connection is currently reading a (large) packet. So it is obviously
// doing something and thus "connected".
return;
}
// Values described here: [MQTT-3.1.2-24].
// If the client sends 5 sec. the server will allow up to 7.5 seconds.
// If the client sends 1 sec. the server will allow up to 1.5 seconds.