c# – WCF listenBacklog和maxConnections不能设置为高于10.为什
发布时间:2020-12-15 06:47:51 所属栏目:百科 来源:网络整理
导读:我的服务在低负载下工作得很好.但是在高负载下,我开始得到连接错误. 我知道其他设置,但我正在尝试更改listenBacklog参数,特别是对于我的TCP缓冲绑定. 如果我设置listenBacklog =“10”,我可以telnet到我的WCF服务正在运行的端口. 如果我将listenBacklog更改
我的服务在低负载下工作得很好.但是在高负载下,我开始得到连接错误.
我知道其他设置,但我正在尝试更改listenBacklog参数,特别是对于我的TCP缓冲绑定. 如果我设置listenBacklog =“10”,我可以telnet到我的WCF服务正在运行的端口. 如果我将listenBacklog更改为高于10的任何内容,它将不会让我在运行时telnet进我的服务. 没有错误似乎被抛出. 我能做什么? 这是我的约束力: <bindings> <netTcpBinding> <binding name="NetTcpBinding_IMyService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288" maxBufferSize="1048576" maxConnections="10" maxReceivedMessageSize="1048576"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /> <security mode="Transport"> <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign"> </transport> <message clientCredentialType="Windows" /> </security> </binding> ... 我真的需要增加maxConnections和listenBacklog的值 解决方法
如果您在Win2000,XP,Vista或Win7机器上运行,则操作系统将限制您进行10个并发TCP连接.尝试在Windows Server计算机上运行以确认.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |