From: Jeremy Kemper <jeremy@bitsweat.net>
To: rack-devel@googlegroups.com
Subject: Re: Downsizing CommonLogger
Date: Wed, 12 Aug 2009 16:56:43 -0500 [thread overview]
Message-ID: <69a2885c0908121456w41348d4cjff273bbbed958fe3@mail.gmail.com> (raw)
In-Reply-To: <20090812023813.GA5916@dcvr.yhbt.net>
On Tue, Aug 11, 2009 at 9:38 PM, Eric Wong<normalperson@yhbt.net> wrote:
>
> Eric Wong <normalperson@yhbt.net> wrote:
>> Christian Neukirchen <chneukirchen@gmail.com> wrote:
>> > Joshua Peek <josh@joshpeek.com> writes:
>> >
>> > > I'll pull it in soon.
>> >
>> > Does it log the right size for chunked outputs? In logfiles, I want those...
>>
>> I'm very late to the party, but no, it doesn't.
>>
>> This also miscalculates request time if the body is being generated
>> dynamically during #each.
>
> I'd rather revert the original patch here for simplicity.
>
> But if the original _dup was too much overhead maybe we can reach a
> middle ground and only fall back to wrapping #each iff there's no
> Content-Length header to be found.
>
> I don't can't find any real applications to benchmark with; but the
> following patch may be considered (try Content-Length first, fallback to
> wrapping body#each):
Hey Eric,
Nice patch, but these changes were intentional. CommonLogger's concern
is logging the request, not calculating content length edge cases or
acting as a benchmarker. I'd advocate removing the timing entirely;
it's not part of the Common Log Format.
Best,
jeremy
next prev parent reply other threads:[~2009-08-12 22:01 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-29 15:03 Downsizing CommonLogger Jeremy Kemper
2009-04-29 15:21 ` Michael Fellinger
2009-05-14 1:52 ` Jeremy Kemper
2009-05-14 5:14 ` Matt Todd
2009-05-14 14:28 ` Joshua Peek
2009-05-16 8:58 ` Christian Neukirchen
2009-08-12 1:14 ` Eric Wong
2009-08-12 2:38 ` Eric Wong
2009-08-12 21:56 ` Jeremy Kemper [this message]
2009-08-13 5:44 ` Eric Wong
2009-08-13 10:14 ` Christian Neukirchen
2009-08-13 16:18 ` Jeremy Kemper
2009-08-13 16:26 ` Jeremy Kemper
2009-08-13 16:30 ` Yehuda Katz
2009-08-13 16:33 ` Brian Lopez
2009-08-13 16:36 ` Jeremy Kemper
2009-08-13 18:43 ` Scytrin dai Kinthra
2009-08-14 3:33 ` 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=69a2885c0908121456w41348d4cjff273bbbed958fe3@mail.gmail.com \
--to=rack-devel@googlegroups.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).