From 2e0057e477ef68dde4f8cefc9213a55c113fd318 Mon Sep 17 00:00:00 2001 From: BrennanConroy Date: Mon, 14 May 2018 10:52:19 -0700 Subject: [PATCH] Remove backpressure from benchmarks app (#2087) --- benchmarkapps/BenchmarkServer/Startup.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/benchmarkapps/BenchmarkServer/Startup.cs b/benchmarkapps/BenchmarkServer/Startup.cs index 8074401d1b..94181cba6d 100644 --- a/benchmarkapps/BenchmarkServer/Startup.cs +++ b/benchmarkapps/BenchmarkServer/Startup.cs @@ -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("/echo"); + routes.MapHub("/echo", o => + { + // Remove backpressure for benchmarking + o.TransportMaxBufferSize = 0; + o.ApplicationMaxBufferSize = 0; + }); }); } }