Been reading through
http://uk.php.net/manual/en/features.connection-handling.php and
trying to implement a solution using it. So far the documented
behaviour rarely occurs.

This code is a minimal test case: http://codepad.org/GqNlcWiM

I run this behind Apache 2.2 with PHP 5.3 on Linux. The in-line
comments explain the problem. I load in the browser and hit stop
pretty much immediately but PHP does not get signalled that the user
has aborted and continues.

>From memory of having to restart apache after hitting long-running
scripts in the past, I don't ever believe I've had a script terminate
on a user abort. And I've never switched the behaviour from default.

I read several people explain this behaviour would only ever work in
writing back to the client and to flush the buffer, which is included
in the test case. I've also removed any compression from within
Apache.

Can anyone explain what I've seeing? I've tried this using Lighttpd/Windows too.

Thanks,

James

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to