Max buf len from constants

This commit is contained in:
2019-06-25 09:21:10 +01:00
parent f2e9b8ed7d
commit e826a4edc9
5 changed files with 6 additions and 5 deletions

View File

@ -7,6 +7,7 @@ using cli.Model;
using Microsoft.Extensions.CommandLineUtils;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.OptionsModel;
using Yavsc;
namespace cli {
@ -75,7 +76,7 @@ namespace cli {
await _client.ConnectAsync(
new Uri(_cxSettings.StreamingUrl+"/"+_flowIdArg.Value),
_tokenSource.Token);
const int bufLen = 56*1024;
const int bufLen = Constants.WebSocketsMaxBufLen;
byte [] buffer = new byte[bufLen];
const int offset=0;
int read = 0;