Remove backpressure from benchmarks app (#2087)
This commit is contained in:
parent
36b7f72460
commit
2e0057e477
|
|
@ -12,15 +12,23 @@ namespace BenchmarkServer
|
||||||
{
|
{
|
||||||
public void ConfigureServices(IServiceCollection services)
|
public void ConfigureServices(IServiceCollection services)
|
||||||
{
|
{
|
||||||
services.AddSignalR()
|
services.AddSignalR(o =>
|
||||||
.AddMessagePackProtocol();
|
{
|
||||||
|
o.EnableDetailedErrors = true;
|
||||||
|
})
|
||||||
|
.AddMessagePackProtocol();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
|
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
|
||||||
{
|
{
|
||||||
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