From 7f856131eb69141d90c89656867a6672e69c3038 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 13 Nov 2020 19:37:47 +0900 Subject: [PATCH] [Modify] Move it --- websocket-sharp/Net/HttpConnection.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/websocket-sharp/Net/HttpConnection.cs b/websocket-sharp/Net/HttpConnection.cs index 299b3718..2b5b3f49 100644 --- a/websocket-sharp/Net/HttpConnection.cs +++ b/websocket-sharp/Net/HttpConnection.cs @@ -61,7 +61,7 @@ namespace WebSocketSharp.Net #region Private Fields private byte[] _buffer; - private const int _bufferLength = 8192; + private static readonly int _bufferLength; private HttpListenerContext _context; private bool _contextRegistered; private StringBuilder _currentLine; @@ -91,6 +91,7 @@ namespace WebSocketSharp.Net static HttpConnection () { + _bufferLength = 8192; _maxInputLength = 32768; }