a first file sent using packets at max size
This commit is contained in:
parent
c0a3f8b283
commit
7b14144193
13 changed files with 217 additions and 150 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -178,9 +178,7 @@ namespace Yavsc
|
|||
// Add framework services.
|
||||
services.AddEntityFramework()
|
||||
.AddNpgsql()
|
||||
.AddDbContext<ApplicationDbContext>(
|
||||
db => db.UseNpgsql(ConnectionString)
|
||||
);
|
||||
.AddDbContext<ApplicationDbContext>();
|
||||
|
||||
ConfigureOAuthServices(services);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue