mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 09:13:02 +08:00
Improve internal server connection management. (#1232)
This commit is contained in:
@@ -31,6 +31,7 @@ namespace MQTTnet.TestApp.NetCore
|
||||
Console.WriteLine("a = Start QoS 2 benchmark");
|
||||
Console.WriteLine("b = Start QoS 1 benchmark");
|
||||
Console.WriteLine("c = Start QoS 0 benchmark");
|
||||
Console.WriteLine("d = Start server with logging");
|
||||
|
||||
var pressedKey = Console.ReadKey(true);
|
||||
if (pressedKey.KeyChar == '1')
|
||||
@@ -83,6 +84,10 @@ namespace MQTTnet.TestApp.NetCore
|
||||
{
|
||||
Task.Run(PerformanceTest.RunQoS0Test);
|
||||
}
|
||||
else if (pressedKey.KeyChar == 'd')
|
||||
{
|
||||
Task.Run(ServerTest.RunEmptyServerWithLogging);
|
||||
}
|
||||
|
||||
Thread.Sleep(Timeout.Infinite);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user