You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Alex Khrenov <sa...@objectsecurity.com> on 2003/11/06 09:26:10 UTC

How to detect client disconnect without doing any I/O in mod_perl2?

In the mod_perl1 there is $c->fileno( [$direction] ) for it.
How can i to do in mod_perl2?



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: How to detect client disconnect without doing any I/O in mod_perl2?

Posted by Stas Bekman <st...@stason.org>.
Alex Khrenov wrote:
> In the mod_perl1 there is $c->fileno( [$direction] ) for it.
> How can i to do in mod_perl2?

$c->aborted? Though I'm not sure whether it'll be set if you don't try to read 
from/write to the socket. It'd be nice to add such a test to our test suite. 
Patches are *very* welcome.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org