From 80921f0dd82b3d8a958b287986c1df7af1112635 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 14 Nov 2020 17:46:31 +0900 Subject: [PATCH] [Modify] Move it --- websocket-sharp/Net/HttpConnection.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/websocket-sharp/Net/HttpConnection.cs b/websocket-sharp/Net/HttpConnection.cs index 2b5b3f49..95acd0ab 100644 --- a/websocket-sharp/Net/HttpConnection.cs +++ b/websocket-sharp/Net/HttpConnection.cs @@ -128,6 +128,7 @@ namespace WebSocketSharp.Net _stream = netStream; } + _buffer = new byte[_bufferLength]; _localEndPoint = socket.LocalEndPoint; _remoteEndPoint = socket.RemoteEndPoint; _sync = new object (); @@ -540,9 +541,6 @@ namespace WebSocketSharp.Net public void BeginReadRequest () { - if (_buffer == null) - _buffer = new byte[_bufferLength]; - if (_reuses == 1) _timeout = 15000;