Re: Apache::ASP, Response-Flush problems ...

2001-02-28 Thread Joshua Chamas

"Demetrios C. Christopher" wrote:
 
 Hello all,
 due to some issues with long-running scripts and impatient users
 we decided to display some sort of message (either in the window
 or in a popup - better!) that would say "Chill out, don't refresh
 or double-click" etc, etc.  I was trying to take advantage of
 $Response-{Buffer} and $Response-Flush() but apparently it does
 not work.  Clearing and Flushing may work in the "end product"
 which is what you see on your browser but the timing is not correct.
 That is, when I say "$Response-Flush()" I actually want the user

It should work, the code that's relevant in Apache::ASP::Response::Flush(),
but its seems not to be working for me either.  My real problem
here is that I've fixed this before, so I obvi need to create a decent
make test case for this routine.  My humble apologies.

I'll get back to you when I have this fix.

--Josh
 
_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks  free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051



Re: Apache::ASP, Response-Flush problems ...

2001-02-28 Thread Joshua Chamas

"Demetrios C. Christopher" wrote:
 
 Hello all,
 due to some issues with long-running scripts and impatient users
 we decided to display some sort of message (either in the window
 or in a popup - better!) that would say "Chill out, don't refresh
 or double-click" etc, etc.  I was trying to take advantage of
 $Response-{Buffer} and $Response-Flush() but apparently it does
 not work.  Clearing and Flushing may work in the "end product"

The old $Response-Flush() functionality will be back in 2.11.  
If you'd like my latest copy, I can send it to you, or you can 
patch up ASP.pm yourself:

*** ASP.pm~ Mon Feb 26 19:40:09 2001
--- ASP.pm  Wed Feb 28 18:43:43 2001
***
*** 3392,3397 
--- 3392,3398 
#unless($self-{r}-connection-aborted) {
# OK to print random ouput for 200's  300's
if(! defined $self-{Status} or ($self-{Status} = 200 and $self-{Status}  
400)) {
+   local $| = 1;
$self-{r}-print($out);
}
#   }

This change in mod_perl behavior really killed me.
Funny little thing, but at least its more perlish. :)

--Josh
_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks  free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051