Some latency bug found

This commit is contained in:
2025-06-30 15:45:41 +03:00
parent af6e7b6547
commit 1b0f867653
5 changed files with 17 additions and 38 deletions
+2 -2
View File
@@ -9,9 +9,9 @@ namespace Example.Backend
[SharedObjectSingleton]
public class LoadTestImp : ILoadTest
{
public int Next(int last)
public Task<int> Next(int last)
{
return last + 1;
return Task.FromResult( last + 1);
}
public int Last(int next)
+1 -1
View File
@@ -20,7 +20,7 @@ class Program
builder.Modules.Add(new BackendIdentityGenerator());
// builder.UseNetworkGateway(new IPEndPoint(IPAddress.Loopback, 4567), typeof(NextGenerationInteractionModule),
// builder.GetModule<IIdentityGenerator>()!);
var listening = new IPEndPoint(IPAddress.Loopback, 4567);
var listening = new IPEndPoint(IPAddress.Any, 4567);
builder.UseNetworkGateway(listening, typeof(ChannelInteractionModule),
builder.GetModule<IIdentityGenerator>()!);
builder.Modules.Add(new UdpGateway(listening));