[英]Rails 3.1: ECONNRESET (Connection reset by peer
I am running a Rails 3.1.我正在运行 Rails 3.1。 When I connect to my page (hosted via webrick), I am unable to connect from other computers.
当我连接到我的页面(通过 webrick 托管)时,我无法从其他计算机连接。 However, if I connect using localhost:3000, it works.
但是,如果我使用 localhost:3000 进行连接,则它可以工作。 This used to work on Rails 3.0 -- using the same router -- but now it doesn't.
这曾经在 Rails 3.0 上工作——使用相同的路由器——但现在不行了。 Does anyone know what could be wrong?
有谁知道可能有什么问题? Here is the error:
这是错误:
Started GET "/" for 192.168.1.102 at 2011-11-16 21:26:06 -0500 Processing by MainController#index as HTML Rendered main/index.html.erb within layouts/application (0.9ms) Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.0ms) [2011-11-16 21:26:06] ERROR Errno::ECONNRESET: Connection reset by peer /Users/derek/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:56:in `eof?' /Users/derek/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:56:in `run' /Users/derek/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
In my case the issue was because the port 3000 was being blocked by the network where the server was part of.在我的情况下,问题是因为端口 3000 被服务器所在的网络阻止。 Once that block was removed, it works fine.
一旦该块被移除,它就可以正常工作。
This error will be generated anytime when the server doesn't want to talk to you, eg.当服务器不想与您交谈时,将随时生成此错误,例如。 because of auth failure or service outage.
由于身份验证失败或服务中断。
I got the same error.. when I am trying to upload 40+ MB Video file.当我尝试上传 40+ MB 的视频文件时,我遇到了同样的错误。
Let me know if you get solution of this...如果您得到解决方案,请告诉我...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.