Issues w/ WEBrick server?


#1

Hi guys,

I’m running a Rails application on WEBrick under Windows XP, and noticed
that after using my web application for just a few minutes, the
application became sluggish. So I started a fresh server and just used
my browser to access the application home page several times in quick
succession (which does a basic Rails action, renders a trivial template
and does not do any logic or database access).

The WEBrick server console started throwing up error traces like the one
at the end of this post, and it’s trivial to reproduce. Is there a known
issue with the WEBrick server? Getting error messages like this for such
a simple use case is a bit worrying!

Cheers,
Graham

=================================================================

Stack trace that occurred after accessing the web application page
about 10 times in quick succession. The application had only been
running for about 20 seconds and was not doing any background
processing.

127.0.0.1 - - [01/Dec/2005:02:57:22 Eastern Standard Time] “GET /
HTTP/1.1” 200 0
http://localhost:3000/ -> /
[2005-12-01 02:57:23] ERROR Errno::EINVAL: Invalid argument
c:/ruby/lib/ruby/1.8/webrick/httpresponse.rb:324:in write' c:/ruby/lib/ruby/1.8/webrick/httpresponse.rb:324:in<<’
c:/ruby/lib/ruby/1.8/webrick/httpresponse.rb:324:in
_write_data' c:/ruby/lib/ruby/1.8/webrick/httpresponse.rb:180:insend_header’
c:/ruby/lib/ruby/1.8/webrick/httpresponse.rb:103:in
send_response' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:79:inrun’
c:/ruby/lib/ruby/1.8/webrick/server.rb:155:in start_thread' c:/ruby/lib/ruby/1.8/webrick/server.rb:144:instart’
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in start_thread' c:/ruby/lib/ruby/1.8/webrick/server.rb:94:instart’
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in each' c:/ruby/lib/ruby/1.8/webrick/server.rb:89:instart’
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in start' c:/ruby/lib/ruby/1.8/webrick/server.rb:79:instart’
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/webrick_server.rb:69:in
dispatch' c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/commands/servers/webrick.rb:59 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:inrequire__’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
require' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:214:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/commands/server.rb:28
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
require__' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:inrequire’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dependencies.rb:214:in
`require’
script/server:5
127.0.0.1 - - [01/Dec/2005:02:57:23 Eastern Standard Time] “GET /
HTTP/1.1” 200 0
http://localhost:3000/ -> /
127.0.0.1 - - [01/Dec/2005:02:57:23 Eastern Standard Time] “GET /
HTTP/1.1” 200 2201