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) 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;
});
}); });
} }
} }