Max buf len from constants
This commit is contained in:
@ -1 +1 @@
|
|||||||
03
|
04
|
||||||
|
@ -36,7 +36,7 @@ namespace Yavsc
|
|||||||
YavscConnectionStringEnvName = "YAVSC_DB_CONNECTION";
|
YavscConnectionStringEnvName = "YAVSC_DB_CONNECTION";
|
||||||
|
|
||||||
|
|
||||||
|
public const int WebSocketsMaxBufLen = 6*1024;
|
||||||
|
|
||||||
|
|
||||||
public static readonly long DefaultFSQ = 1024*1024*500;
|
public static readonly long DefaultFSQ = 1024*1024*500;
|
||||||
|
@ -17,7 +17,7 @@ namespace Yavsc
|
|||||||
var webSocketOptions = new WebSocketOptions()
|
var webSocketOptions = new WebSocketOptions()
|
||||||
{
|
{
|
||||||
KeepAliveInterval = TimeSpan.FromSeconds(120),
|
KeepAliveInterval = TimeSpan.FromSeconds(120),
|
||||||
ReceiveBufferSize = 16 * 1024,
|
ReceiveBufferSize = Constants.WebSocketsMaxBufLen,
|
||||||
ReplaceFeature = true
|
ReplaceFeature = true
|
||||||
};
|
};
|
||||||
app.UseWebSockets(webSocketOptions);
|
app.UseWebSockets(webSocketOptions);
|
||||||
|
@ -7,6 +7,7 @@ using cli.Model;
|
|||||||
using Microsoft.Extensions.CommandLineUtils;
|
using Microsoft.Extensions.CommandLineUtils;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Microsoft.Extensions.OptionsModel;
|
using Microsoft.Extensions.OptionsModel;
|
||||||
|
using Yavsc;
|
||||||
|
|
||||||
namespace cli {
|
namespace cli {
|
||||||
|
|
||||||
@ -75,7 +76,7 @@ namespace cli {
|
|||||||
await _client.ConnectAsync(
|
await _client.ConnectAsync(
|
||||||
new Uri(_cxSettings.StreamingUrl+"/"+_flowIdArg.Value),
|
new Uri(_cxSettings.StreamingUrl+"/"+_flowIdArg.Value),
|
||||||
_tokenSource.Token);
|
_tokenSource.Token);
|
||||||
const int bufLen = 56*1024;
|
const int bufLen = Constants.WebSocketsMaxBufLen;
|
||||||
byte [] buffer = new byte[bufLen];
|
byte [] buffer = new byte[bufLen];
|
||||||
const int offset=0;
|
const int offset=0;
|
||||||
int read = 0;
|
int read = 0;
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
"Newtonsoft.Json": "9.0.1",
|
"Newtonsoft.Json": "9.0.1",
|
||||||
"NJsonSchema.CodeGeneration.CSharp": "9.10.65",
|
"NJsonSchema.CodeGeneration.CSharp": "9.10.65",
|
||||||
"Yavsc": {
|
"Yavsc": {
|
||||||
"version": "1.0.6-rc03",
|
"version": "1.0.6-rc04",
|
||||||
"target": "package"
|
"target": "package"
|
||||||
},
|
},
|
||||||
"Microsoft.Dnx.Host": "1.0.0-rc1-final",
|
"Microsoft.Dnx.Host": "1.0.0-rc1-final",
|
||||||
|
Reference in New Issue
Block a user