java - TCP 错误 10055 : An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full

标签 java wcf tomcat mtom

我收到此 TCP 错误:(10055:无法执行套接字上的操作,因为系统缺少足够的缓冲区空间或因为队列已满)在传输数据时发生。

显然,如果我尝试传输任何超过 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>

最佳答案

如果你把你的错误信息和google it你会找到很多答案。

TCP 错误(10055:由于系统缺少足够的缓冲区空间或队列已满,无法执行对套接字的操作)

这是一个。 http://support.microsoft.com/kb/196271

关于java - TCP 错误 10055 : An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2696783/

相关文章:

java - 在 HttpServlet 中强制从 HTTPS 请求到 HTTP

c# - WCF 服务双重模拟?

WCF 最大并发调用数

c# - 如何构建批量返回数据的WCF服务

tomcat - 在同一台服务器上拥有多个 tomcat 实例是否有意义?

Java - 转换 Html 特殊字符的问题

java - 尝试使用 SQLite 在 android 中存储数据,创建合约类和帮助程序类时出现问题

java - Tomcat 没有运行 servlet

java - 数组意外行为

tomcat - webapp升级使用war文件是否会覆盖之前web app的所有内容