From 04b3690a2b35f44086c1943b7e5bda9a25189646 Mon Sep 17 00:00:00 2001 From: zedshaw Date: Tue, 3 Oct 2006 08:19:06 +0000 Subject: Small tweaks for debugging something possibly causing 100% CPU. git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@356 19e92222-5c0b-0410-8929-a290d50e31e9 --- lib/mongrel.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/mongrel.rb') diff --git a/lib/mongrel.rb b/lib/mongrel.rb index 57cfb6a..e8d66f4 100644 --- a/lib/mongrel.rb +++ b/lib/mongrel.rb @@ -219,7 +219,9 @@ module Mongrel read_body(remain, content_length, dispatcher) end - @body.rewind if body + raise HttpParserError.new("BAD CLIENT: Actual body length does not match Content-Length") if @body.pos != content_length + + @body.rewind if @body end @@ -687,7 +689,6 @@ module Mongrel reap_dead_workers("max processors") else thread = Thread.new(client) {|c| process_client(c) } - thread.abort_on_exception = true thread[:started_on] = Time.now @workers.add(thread) -- cgit v1.2.3-24-ge0c7