From b3d2cd6df6852ca2dee3dcee3e0d61a1388b8603 Mon Sep 17 00:00:00 2001 From: shaohaozhi Date: Tue, 26 Nov 2019 21:47:31 +0800 Subject: [PATCH] ... --- src/NSmartProxy.ClientRouter/ServerConnectionManager.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/NSmartProxy.ClientRouter/ServerConnectionManager.cs b/src/NSmartProxy.ClientRouter/ServerConnectionManager.cs index 500e798..1123579 100644 --- a/src/NSmartProxy.ClientRouter/ServerConnectionManager.cs +++ b/src/NSmartProxy.ClientRouter/ServerConnectionManager.cs @@ -170,9 +170,8 @@ private async Task SendConfigRequest() } await configStream.WriteAndFlushAsync(requestBytes2, 0, requestBytes2.Length); - //读端口配置,此处数组的长度会限制使用的节点数(targetserver) - //如果您的机器够给力,可以调高此值 - byte[] serverConfig = new byte[256]; + //高于1500左右需要考虑分帧断包的情况 + byte[] serverConfig = new byte[1024]; //TODO 任何read都应该设置超时 int readBytesCount = await configStream.ReadAsync(serverConfig, 0, serverConfig.Length);