rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
* Error when using Mogrel handler and Clogger together
@ 2009-09-09 14:43 Iñaki Baz Castillo
  2009-09-09 17:23 ` Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Iñaki Baz Castillo @ 2009-09-09 14:43 UTC (permalink / raw)
  To: rack-devel, clogger


Hi, when I use Rack Mongrel handler and Clogger and error occurs when
a request arrives:


D 2009-09-09 16:29:09 [21978] DEBUG : HTTP: 91.121.79.216 "GET
/xxxxxx" 200 831 0.0036

Wed Sep 09 16:29:09 +0200 2009: Read error: #<NoMethodError: undefined
method `close' for #<Array:0x7fed7c410c28>>
/usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/mongrel.rb:83:in `close'
/usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/mongrel.rb:83:in
`process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/usr/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/mongrel.rb:38:in `run'



The code is simple:

-------------
rack_app = Rack::Builder.new {
  use Clogger, :logger => ::MyServer::Logger, :format => "HTTP:
$remote_addr \"$request_method $request_uri\" $status $response_length
$request_time{4}".freeze
  use Rack::ContentLength  # Avoid chunked body until new Rack release.
  run rack_inner_app
}.to_app
-------------

-- 
Iñaki Baz Castillo
<ibc@aliax.net>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-09 17:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-09 14:43 Error when using Mogrel handler and Clogger together Iñaki Baz Castillo
2009-09-09 17:23 ` Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).