4

我正在使用微小的 tds 获取数据。获取时出现以下错误。我没有使用日食。我正在使用 Mongrel 服务器 + Windows

     Read error: #<Errno::ECONNABORTED: An established connection was aborted by the software in your host machine.>
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-ming

    w32/lib/mongrel/http_response.rb:140:in `write'
    C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-ming
    w32/lib/mongrel/http_response.rb:140:in `write'
    C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-ming
    w32/lib/mongrel/http_response.rb:98:in `send_header'
    C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/handle
    r/mongrel.rb:88:in `process'
    C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-ming
    w32/lib/mongrel.rb:165:in `block in process_client'
    C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-ming
    w32/lib/mongrel.rb:164:in `each'
    C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-ming
    w32/lib/mongrel.rb:164:in `process_client'
    C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mongrel-1.2.0.pre2-x86-ming
    w32/lib/mongrel.rb:291:in `block (2 levels) in run'

请建议我如何解决这个问题。

4

1 回答 1

1

我有同样的问题:服务器日志有这个错误消息,客户端得到超时异常。最终我们找到了根本原因:我们将图片的 base64 编码字符串从 Web 服务器发送到客户端。这个 base64 字符串可能会中断 HTTP 响应的分隔符并导致 Web 服务器崩溃。在我们删除 base64 字符串后,它工作正常。

于 2013-05-12T09:53:53.837 回答