- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个带有底层 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”异常。
我找不到任何地方可以超越这个限制 - 你们有什么线索吗?
亲切的问候卡斯滕赫斯
最佳答案
Windows 对并发半开 tcp 连接的最大数量有限制。这个限制在不同的版本和配置中有所不同,但它在这里。例如,谷歌搜索 tcpip.sys 问题 - 你会发现各种配置选项来覆盖它。
关于c# - 如何使用 TcpChannel 配置对远程服务器的并发请求限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/479464/
我有一个带有底层 TcpChannel 的标准远程处理服务器: IDictionary props = new Hashtable(); props["port"] = portnum
我在使用 TcpChannel 时遇到了一些问题。我想创建一个 channel ,远程访问一个对象,比方说,一个服务器,完成所有这些之后,关闭 channel 。问题是我可能需要稍后在同一个端口重新打
由于 .NET Remoting 已从 .NET Core 框架中删除,我尝试使用 NetTcpBinding from the WCF library ,但它不包含在 .NET Core 中。 有没
太棒了,我们这里有这个系统,其工作方式如下: 我们有一个面向 WWW 的 Java WS,因此我们的客户可以从任何地方访问它。 Java WS 只是通往位于我们本地 Intranet 中的 .NET
我需要通过 SSL 保护我的 .NET Remoting。我正在使用 TCPChannel,但无法切换到 HTTPChannel 并使用 IIS 添加 SSL。 因此,我想通了,我需要创建自己的接收器
我是一名优秀的程序员,十分优秀!