From 43e5f300a7b4c4442c54ced1aa81689c0a259599 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 23 Aug 2018 15:13:28 -0400 Subject: [PATCH] tweak buffer sizes and filter error logs --- src/Notifications/Startup.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Notifications/Startup.cs b/src/Notifications/Startup.cs index 1f96fbe3dd..a5601353db 100644 --- a/src/Notifications/Startup.cs +++ b/src/Notifications/Startup.cs @@ -92,6 +92,11 @@ namespace Bit.Notifications return e.Level > LogEventLevel.Error; } + if(e.Level == LogEventLevel.Error && e.MessageTemplate.Text == "Failed connection handshake.") + { + return false; + } + return e.Level >= LogEventLevel.Error; }); @@ -116,7 +121,11 @@ namespace Bit.Notifications } else { - app.UseSignalR(routes => routes.MapHub("/hub")); + app.UseSignalR(routes => routes.MapHub("/hub", options => + { + options.ApplicationMaxBufferSize = 20; // client => server messages are not even used + options.TransportMaxBufferSize = 2048; + })); } // Add MVC to the request pipeline.