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:
parent
61d2ba644c
commit
43e5f300a7
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user