<system.net>
<connectionManagement>
<add maxconnection="1000" address="*"/>
</connectionManagement>
</system.net>
有人可以告诉我此设置是否会影响我的 WCF (basicHttpBinding) 服务吗?
<system.net>
<connectionManagement>
<add maxconnection="1000" address="*"/>
</connectionManagement>
</system.net>
有人可以告诉我此设置是否会影响我的 WCF (basicHttpBinding) 服务吗?
不。
来自 MSDN。
此类用于指定与远程计算机的最大同时连接数。
好的,对于 WCF,它看起来像这样:
<behavior name="CommonServices_Behavior">
<serviceDebug includeExceptionDetailInFaults="false" />
<serviceMetadata httpGetEnabled="true" />
<serviceThrottling maxConcurrentCalls="100" maxConcurrentSessions="50" maxConcurrentInstances="50" />
</behavior>
通常,最大连接数是您的服务器设置可以支持的值。这取决于您的服务器的物理构成、服务器的正常负载以及您的 Internet 连接速度。没有一种价值观适合所有人。
有关更多详细信息,请参阅http://msdn.microsoft.com/en-us/library/fb6y0fyc.aspx