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