![](/img/trans.png)
[英]java.net.ConnectException: the system lacked sufficient buffer space or because a queue was full
[英]TCP error 10055: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full
我收到此 TCP 错误: (10055: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full) occurred while transmitting data.
显然,如果我尝试传输任何超过 50 MB 的文件,我就会开始收到此错误。 我正在使用 WCF。 我有用 Java/Tomcat 编写的 Web 服务。
会不会是服务器端配置的问题?
服务器是Tomcat,你能告诉我在那种情况下定制哪个值吗?
<bindings>
<basicHttpBinding>
<binding name="MyWebService1SoapHttpPortBinding" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:11:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="4000000" maxReceivedMessageSize="99999999"
messageEncoding="Mtom" textEncoding="utf-8" transferMode="StreamedRequest"
useDefaultWebProxy="true">
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://[IP]/Transfer"
binding="basicHttpBinding" bindingConfiguration="MyWebService1SoapHttpPortBinding"
contract="Transfer" name="MyWebService1SoapHttpPort" />
</client>
如果你把你的错误信息和谷歌它,你会找到很多答案。
TCP 错误(10055:无法对套接字执行操作,因为系统缺少足够的缓冲区空间或队列已满)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.