Remove backpressure from benchmarks app (#2087)
This commit is contained in:
parent
36b7f72460
commit
2e0057e477
|
|
@ -12,7 +12,10 @@ namespace BenchmarkServer
|
||||||
{
|
{
|
||||||
public void ConfigureServices(IServiceCollection services)
|
public void ConfigureServices(IServiceCollection services)
|
||||||
{
|
{
|
||||||
services.AddSignalR()
|
services.AddSignalR(o =>
|
||||||
|
{
|
||||||
|
o.EnableDetailedErrors = true;
|
||||||
|
})
|
||||||
.AddMessagePackProtocol();
|
.AddMessagePackProtocol();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -20,7 +23,12 @@ namespace BenchmarkServer
|
||||||
{
|
{
|
||||||
app.UseSignalR(routes =>
|
app.UseSignalR(routes =>
|
||||||
{
|
{
|
||||||
routes.MapHub<EchoHub>("/echo");
|
routes.MapHub<EchoHub>("/echo", o =>
|
||||||
|
{
|
||||||
|
// Remove backpressure for benchmarking
|
||||||
|
o.TransportMaxBufferSize = 0;
|
||||||
|
o.ApplicationMaxBufferSize = 0;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue