mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-19 11:03:07 +08:00
use raw buffer for frist connect msg then use buffered stream to read more efficient
This commit is contained in:
@@ -17,7 +17,7 @@ namespace MQTTnet.TestApp.NetFramework
|
||||
public static async Task RunAsync()
|
||||
{
|
||||
var server = Task.Run(() => RunServerAsync());
|
||||
var client = Task.Run(() => RunClientAsync(500, TimeSpan.FromMilliseconds(10)));
|
||||
var client = Task.Run(() => RunClientAsync(300, TimeSpan.FromMilliseconds(10)));
|
||||
|
||||
await Task.WhenAll(server, client).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user