Re: Updating $r-connection-aborted before $r-print() ?

2001-09-20 Thread Joshua Chamas
Geoffrey Young wrote: yes, it worked for me. actually, I guess I should have been clearer - this has nothing to do with $c-aborted or $r-print (well, on the outside anyway). for $c-aborted you have to wait for Apache to flush the print buffers. actually, in my tests $r-rflush didn't help

RE: Updating $r-connection-aborted before $r-print() ?

2001-09-20 Thread Geoffrey Young
Hey Geoff, for efficiency, my final code for detecting a client abort is: [snip] where $self is the ASP object ... I looked at the IO::Select-new() and it looked pretty hairy, so I checked connection-aborted status first in case it was already set. good idea. thanks for following up...

RE: Updating $r-connection-aborted before $r-print() ?

2001-09-17 Thread Stas Bekman
On Sat, 15 Sep 2001, Geoffrey Young wrote: my $fileno = $r-connection-fileno; $s = IO::Select-new($fileno); die aborted if grep { m/$fileno/ } $s-can_read(1); Hmm, does this actually work Geoff? What happens if mod_perl is running as a back-end? In this case $r-connection-aborted

Re: Updating $r-connection-aborted before $r-print() ?

2001-09-17 Thread Joshua Chamas
Geoffrey Young wrote: my $fileno = $r-connection-fileno; $s = IO::Select-new($fileno); die aborted if grep { m/$fileno/ } $s-can_read(1); HTH Thanks for this. The code that I ended up using for Apache::ASP was: # IsClientConnected ? Might already be disconnected for busy

Re: Updating $r-connection-aborted before $r-print() ?

2001-09-15 Thread Stas
Geoffrey Young wrote: -Original Message- From: Joshua Chamas [mailto:[EMAIL PROTECTED]] Sent: Friday, September 14, 2001 3:21 PM To: Mod Perl Subject: Updating $r-connection-aborted before $r-print() ? Hey, In my own experience it seems that I can only get $r-connection-aborted

RE: Updating $r-connection-aborted before $r-print() ?

2001-09-15 Thread Geoffrey Young
my $fileno = $r-connection-fileno; $s = IO::Select-new($fileno); die aborted if grep { m/$fileno/ } $s-can_read(1); Hmm, does this actually work Geoff? What happens if mod_perl is running as a back-end? In this case $r-connection-aborted doesn't work even if

Updating $r-connection-aborted before $r-print() ?

2001-09-14 Thread Joshua Chamas
Hey, In my own experience it seems that I can only get $r-connection-aborted updated if I first do a $r-print(). Is there any way to get aborted to update without $r-print? The scenario is that developer would like to know the aborted status before any part of the script runs, where browser

RE: Updating $r-connection-aborted before $r-print() ?

2001-09-14 Thread Geoffrey Young
-Original Message- From: Joshua Chamas [mailto:[EMAIL PROTECTED]] Sent: Friday, September 14, 2001 3:21 PM To: Mod Perl Subject: Updating $r-connection-aborted before $r-print() ? Hey, In my own experience it seems that I can only get $r-connection-aborted updated if I