4

我有一个带有底层 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”异常。

我找不到任何地方可以超越这个限制——你们有线索吗?

亲切的问候卡斯滕赫斯

4

1 回答 1

1

Windows has a limit for maximum number of concurrent half-opened tcp connections. This limit vary in different versions and configurations, but it is here. Google for tcpip.sys troubles for example - you will find various configuration options to override this.

于 2009-01-26T12:40:15.860 回答