a first file sent using packets at max size

This commit is contained in:
Paul Schneider 2019-06-30 02:41:48 +01:00
commit 7b14144193
13 changed files with 217 additions and 150 deletions

View file

@ -16,10 +16,9 @@ namespace Yavsc
{
var webSocketOptions = new WebSocketOptions()
{
KeepAliveInterval = TimeSpan.FromSeconds(320),
ReceiveBufferSize = Constants.WebSocketsMaxBufLen,
ReplaceFeature = false
KeepAliveInterval = TimeSpan.FromSeconds(30),
ReceiveBufferSize = Constants.WebSocketsMaxBufLen+4*sizeof(int),
ReplaceFeature = true
};
app.UseWebSockets(webSocketOptions);

View file

@ -178,9 +178,7 @@ namespace Yavsc
// Add framework services.
services.AddEntityFramework()
.AddNpgsql()
.AddDbContext<ApplicationDbContext>(
db => db.UseNpgsql(ConnectionString)
);
.AddDbContext<ApplicationDbContext>();
ConfigureOAuthServices(services);