我有一个带有底层 TcpChannel 的标准远程处理服务器:
IDictionary props = new Hashtable();
props["port"] = portnumber;
TcpChannel channel = new TcpChannel(props, null, provider);
ChannelServices.RegisterChannel(channel, false);
string url = string.Format("AgentHost", portnumber);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(RemotingAgentHostEndPoint),
url,
WellKnownObjectMode.SingleCall);
它工作正常,但在 200 个并行调用时,客户端收到“无法建立连接,因为目标机器主动拒绝它 127.0.0.1:33333”异常。
我找不到任何地方可以超越这个限制——你们有线索吗?
亲切的问候卡斯滕赫斯