[Modify] Move it

This commit is contained in:
sta 2020-11-13 19:37:47 +09:00
parent 8d69e8e87b
commit 7f856131eb

View File

@ -61,7 +61,7 @@ namespace WebSocketSharp.Net
#region Private Fields #region Private Fields
private byte[] _buffer; private byte[] _buffer;
private const int _bufferLength = 8192; private static readonly int _bufferLength;
private HttpListenerContext _context; private HttpListenerContext _context;
private bool _contextRegistered; private bool _contextRegistered;
private StringBuilder _currentLine; private StringBuilder _currentLine;
@ -91,6 +91,7 @@ namespace WebSocketSharp.Net
static HttpConnection () static HttpConnection ()
{ {
_bufferLength = 8192;
_maxInputLength = 32768; _maxInputLength = 32768;
} }