Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
tmoonlight committed Nov 26, 2019
1 parent cf1d4d5 commit b3d2cd6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/NSmartProxy.ClientRouter/ServerConnectionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,8 @@ private async Task<ClientModel> 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);
Expand Down

0 comments on commit b3d2cd6

Please sign in to comment.