RE: Using bytes_sent in mod_perl2

2007-08-02 Thread Steve Hay
Geoffrey Young wrote: unless (exists $ENV{MOD_PERL} ? Apache2::RequestUtil->request()->bytes_sent() : tell STDOUT) { #... send response headers >>> since you no longer send response headers in mp2, isn't this all >>> moot? >> >> Did you overlook the

Re: Using bytes_sent in mod_perl2

2007-08-02 Thread Geoffrey Young
>>> unless (exists $ENV{MOD_PERL} >>> ? Apache2::RequestUtil->request()->bytes_sent() >>> : tell STDOUT) >>> { >>> #... send response headers >> since you no longer send response headers in mp2, isn't this all moot? > > Did you overlook the fact that I'm running all this t

RE: Using bytes_sent in mod_perl2

2007-08-02 Thread Steve Hay
Geoffrey Young wrote: > Steve Hay wrote: >> The code is written in a very out-moded style: it is compatible with >> mod_cgi, runs via ModPerl::Registry (formerly Apache::Registry), and >> produces all its output via explicit print() statements scattered >> left, right and centre, including a print(

Re: Using bytes_sent in mod_perl2

2007-08-02 Thread Geoffrey Young
Steve Hay wrote: > I'm in the process of converting some old software from mod_perl1 to > mod_perl2, and I'm finding that $r->bytes_sent() doesn't work as it used > to. yeah. IIRC the issue is that now we have filters, so in order to actually calculate bytes_sent() the filters need to run in th

Using bytes_sent in mod_perl2

2007-08-02 Thread Steve Hay
I'm in the process of converting some old software from mod_perl1 to mod_perl2, and I'm finding that $r->bytes_sent() doesn't work as it used to. The code is written in a very out-moded style: it is compatible with mod_cgi, runs via ModPerl::Registry (formerly Apache::Registry), and produces all i