1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-31 18:27:49 +01:00

tweak buffer sizes and filter error logs

This commit is contained in:
Kyle Spearrin 2018-08-23 15:13:28 -04:00
parent 61d2ba644c
commit 43e5f300a7

View File

@ -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<NotificationsHub>("/hub"));
app.UseSignalR(routes => routes.MapHub<NotificationsHub>("/hub", options =>
{
options.ApplicationMaxBufferSize = 20; // client => server messages are not even used
options.TransportMaxBufferSize = 2048;
}));
}
// Add MVC to the request pipeline.