Remove backpressure from benchmarks app (#2087)

This commit is contained in:
BrennanConroy 2018-05-14 10:52:19 -07:00 committed by GitHub
parent 36b7f72460
commit 2e0057e477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 3 deletions

View File

@ -12,15 +12,23 @@ namespace BenchmarkServer
{
public void ConfigureServices(IServiceCollection services)
{
services.AddSignalR()
.AddMessagePackProtocol();
services.AddSignalR(o =>
{
o.EnableDetailedErrors = true;
})
.AddMessagePackProtocol();
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
app.UseSignalR(routes =>
{
routes.MapHub<EchoHub>("/echo");
routes.MapHub<EchoHub>("/echo", o =>
{
// Remove backpressure for benchmarking
o.TransportMaxBufferSize = 0;
o.ApplicationMaxBufferSize = 0;
});
});
}
}