【发布时间】:2010-09-28 16:34:38
【问题描述】:
我有一个调用另一台机器上的服务的服务,我可以获得的最大并发连接数是 2。我尝试更改 WCF 服务行为的限制,但没有效果。我读过这是因为从客户端机器到服务器的 2 个并发连接的 HTTP 限制。我该如何克服呢?两台机器的操作系统都是server 2003。
配置:
<serviceBehaviors>
<behavior name="MyServiceTypeBehaviors">
<serviceMetadata httpGetEnabled="true" />
<serviceThrottling maxConcurrentCalls="100" maxConcurrentInstances="100" maxConcurrentSessions="100"/>
</behavior>
</serviceBehaviors>
<system.net>
<connectionManagement>
<add address="*" maxconnection="100" />
</connectionManagement>
【问题讨论】:
标签: wcf