Thanks! But the problem is still exist.
----- Original Message ----- From: "Randy Kobes" <[EMAIL PROTECTED]> To: "薛共和" <[EMAIL PROTECTED]> Cc: <modperl@perl.apache.org> Sent: Thursday, July 21, 2005 12:47 PM Subject: Re: The mod_perl protocol handler sample code have some problem! On Thu, 21 Jul 2005, [big5] [EMAIL PROTECTED] wrote: > 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. -- best regards, randy kobes