mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 00:15:15 +08:00
Increase delay for Keep Alive checks to decrease CPU load.
This commit is contained in:
@@ -470,7 +470,7 @@ namespace MQTTnet.Client
|
|||||||
// due to some edge cases and was buggy in the past. Now we wait several ms because the
|
// due to some edge cases and was buggy in the past. Now we wait several ms because the
|
||||||
// min keep alive value is one second so that the server will wait 1.5 seconds for a PING
|
// min keep alive value is one second so that the server will wait 1.5 seconds for a PING
|
||||||
// packet.
|
// packet.
|
||||||
await Task.Delay(TimeSpan.FromMilliseconds(100), cancellationToken).ConfigureAwait(false);
|
await Task.Delay(250, cancellationToken).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
|
|||||||
Reference in New Issue
Block a user