I am getting this exception across my console when I have multiple
people connecting to my rails app running on webrick (development
mode). As soon as this occurs the server starts to slow to a halt
like there is a memory leak or something and has taken up to 45
seconds to return a page locally with 4 users connected.
Has anyone seen this behavior before or have any hints as to whats
going on? I know that I should be running on Apache/FCGI but this is
a windows box and I dont currently have time to deal with all the
issues involved in setting that up (I hear its a pain in the butt
still).
[2005-07-29 10:33:49] ERROR Errno::EINVAL: Invalid argument
c:/program files/ruby/lib/ruby/1.8/webrick/httprequest.rb:325:in
`gets''
c:/program files/ruby/lib/ruby/1.8/webrick/httprequest.rb:325:in `__send
__''
c:/program files/ruby/lib/ruby/1.8/webrick/httprequest.rb:325:in `_read_
data''
c:/program files/ruby/lib/ruby/1.8/webrick/httprequest.rb:324:in `timeou
t''
c:/program files/ruby/lib/ruby/1.8/timeout.rb:55:in `timeout''
c:/program files/ruby/lib/ruby/1.8/webrick/httprequest.rb:324:in `_read_
data''
c:/program files/ruby/lib/ruby/1.8/webrick/httprequest.rb:335:in `read_l
ine''
c:/program files/ruby/lib/ruby/1.8/webrick/httprequest.rb:225:in `read_r
equest_line''
c:/program files/ruby/lib/ruby/1.8/webrick/httprequest.rb:86:in
`parse''
c:/program files/ruby/lib/ruby/1.8/webrick/httpserver.rb:56:in
`run''
c:/program files/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_threa
d''
c:/program files/ruby/lib/ruby/1.8/webrick/server.rb:144:in
`start''
c:/program files/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_threa
d''
c:/program files/ruby/lib/ruby/1.8/webrick/server.rb:94:in
`start''
c:/program files/ruby/lib/ruby/1.8/webrick/server.rb:89:in
`each''
c:/program files/ruby/lib/ruby/1.8/webrick/server.rb:89:in
`start''
c:/program files/ruby/lib/ruby/1.8/webrick/server.rb:79:in
`start''
c:/program files/ruby/lib/ruby/1.8/webrick/server.rb:79:in
`start''
c:/program files/ruby/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_se
rver.rb:57:in `dispatch''
script/server:49