Re: [mp2] $| doesn't work with mod_perl

2005-10-04 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi pradeep, is $r->flush(); working, or not? Tom pradeep kumar wrote: > mod_deflate is not loaded on my system and I can still see this problem. > > I instrumented some portion of the code to understand the flow and I > have some questions. The mod

Re: [mp2] $| doesn't work with mod_perl

2005-09-26 Thread pradeep kumar
mod_deflate is not loaded on my system and I can still see this problem. I instrumented some portion of the code to understand the flow and I have some questions. The modperl_filter.c has a function modperl_wbucket_flush(). Now the add_flush_bucket variable that is passed to this function is not s

Re: [mp2] $| doesn't work with mod_perl

2005-09-23 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does $r->rflush(); help? Although it should do the same then seting $| to undef. Tom Tom Schindl wrote: > pradeep kumar wrote: > >>>Can you please elaborate on why apache filters can be an issue with the >>>autoflush problem that I noticed ? >>> >>>

Re: [mp2] $| doesn't work with mod_perl

2005-09-20 Thread Philip M. Gollucci
Alexander Charbonnet wrote: Are you sure mod_deflate isn't one of your active Apache filters? mod_deflate will not output until its buffer is full, $| notwithstanding. I tore my hair out trying to work around it, and ended up writing my own compression filter. But if you don't need compressi

Re: [mp2] $| doesn't work with mod_perl

2005-09-19 Thread Alexander Charbonnet
Are you sure mod_deflate isn't one of your active Apache filters? mod_deflate will not output until its buffer is full, $| notwithstanding. I tore my hair out trying to work around it, and ended up writing my own compression filter. But if you don't need compression, try disabling mod_deflate

Re: [mp2] $| doesn't work with mod_perl

2005-09-19 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pradeep kumar wrote: > Can you please elaborate on why apache filters can be an issue with the > autoflush problem that I noticed ? > > Also, I noticed that the autoflush work properly when I flush it to a > regular file. Its only when I choose STDOUT

Re: [mp2] $| doesn't work with mod_perl

2005-09-16 Thread pradeep kumar
Can you please elaborate on why apache filters can be an issue with the autoflush problem that I noticed ? Also, I noticed that the autoflush work properly when I flush it to a regular file. Its only when I choose STDOUT that the flushing gets delayed. Is there some buffering that happens with STD

Re:[mp2] $| doesn't work with mod_perl

2005-09-12 Thread pradeep kumar
Hi Tom,   I am using mp2.   Thanks and Regards, Pradeep  On 9/12/05, Tom Schindl <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE-Hash: SHA1What version of mp are you using if you are running mp2 i think the apache-filter-system is the problem.Tompradeep kumar wrote:> Hi,>>  I have a pe

Re: $| doesn't work with mod_perl

2005-09-12 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What version of mp are you using if you are running mp2 i think the apache-filter-system is the problem. Tom pradeep kumar wrote: > Hi, > > I have a perl script which uses $| to set autoflush on. Basically, it > flushes after every print. This scri

Re: $| doesn't work with mod_perl

2005-09-01 Thread Alexander Charbonnet
Also, as long as you're using CGI.pm, you should use it to generate your HTML output. Your script should probably look like this: #!/usr/bin/perl -w use strict; use CGI qw/:standard/; print header(), p('hello world'), ; sleep 2; print p('testing'), end_html(), ; That'll ge

Re: $| doesn't work with mod_perl

2005-09-01 Thread Alexander Charbonnet
Do you have mod_deflate active in your output chain? mod_deflate slurps up all its input and only prints when its buffer gets full. On Thursday 01 September 2005 07:52 am, pradeep kumar wrote: > Hi, > > I have a perl script which uses $| to set autoflush on. Basically, it > flushes after every p

$| doesn't work with mod_perl

2005-09-01 Thread pradeep kumar
Hi,  I have a perl script which uses $| to set autoflush on. Basically, it flushes after every print. This script is working fine from the command line when run using standalone perl interpreter. But when the same script is accessed via mod_perl/apache setup, mod_perl is not flushing after every p