From 1388fd89d80be3a1c498a042be2553a16b437f55 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 12 Nov 2020 21:34:37 +0900 Subject: [PATCH] [Modify] Add it --- websocket-sharp/Net/HttpConnection.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/websocket-sharp/Net/HttpConnection.cs b/websocket-sharp/Net/HttpConnection.cs index cea69875..6f10d8ec 100644 --- a/websocket-sharp/Net/HttpConnection.cs +++ b/websocket-sharp/Net/HttpConnection.cs @@ -71,6 +71,7 @@ namespace WebSocketSharp.Net private LineState _lineState; private EndPointListener _listener; private EndPoint _localEndPoint; + private static readonly int _maxInputLength; private ResponseStream _outputStream; private int _position; private EndPoint _remoteEndPoint; @@ -86,6 +87,15 @@ namespace WebSocketSharp.Net #endregion + #region Static Constructor + + static HttpConnection () + { + _maxInputLength = 32768; + } + + #endregion + #region Internal Constructors internal HttpConnection (Socket socket, EndPointListener listener)