rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
From: "Iñaki Baz Castillo" <ibc@aliax.net>
To: rack-devel@googlegroups.com, clogger@librelist.com
Subject: Error when using Mogrel handler and Clogger together
Date: Wed, 9 Sep 2009 16:43:52 +0200	[thread overview]
Message-ID: <cc1f582e0909090743p5fe8b375va0ddbb33e998cde8@mail.gmail.com> (raw)


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>

             reply	other threads:[~2009-09-09 14:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-09 14:43 Iñaki Baz Castillo [this message]
2009-09-09 17:23 ` Error when using Mogrel handler and Clogger together Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://groups.google.com/group/rack-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cc1f582e0909090743p5fe8b375va0ddbb33e998cde8@mail.gmail.com \
    --to=rack-devel@googlegroups.com \
    --cc=clogger@librelist.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).