LUKE wrote:
Thanks!

But the problem is still exist.

The sample code have some problem. When i telnet then
CommandServer in win32 everything is ok. But if i close
then console window(terminal)  immediate, the apache is
hang. CPU use 100% resource.

I  try to use
$c->aborted()
OR
($@ == APR::Const::ECONNABORTED )
to check the connect but it can not  detect the client is disconnect.

[ ... ]
I'm not sure if this will help, but you might try the use
of APR::Status::is_ECONNABORTED(), as discussed at
  http://perl.apache.org/docs/2.0/api/APR/Status.html#C_is_ECONNABORTED_
to check if $@ corresponds to APR_STATUS_IS_ECONNABORTED,
due to variants in the error conditions.

I'm not familiar with windows, but I think you need to run an equivalent of unix's strace(1), which shows you where the process is spinning and go from there. (or attach with debugger, or something else).

Randy, can you write a test that can emulate such a situation?

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

Reply via email to