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 u

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

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

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->

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 disconnecte

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

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...