Bug #60586 [Com]: ignore_user_abort=true has no effect on IIS with FastCGI

2012-07-10 Thread sauvant at aspera dot com
Edit report at https://bugs.php.net/bug.php?id=60586&edit=1

 ID: 60586
 Comment by: sauvant at aspera dot com
 Reported by:sauvant at aspera dot com
 Summary:ignore_user_abort=true has no effect on IIS with
 FastCGI
 Status: Feedback
 Type:   Bug
 Package:IIS related
 Operating System:   Windows Server 2008 R2
 PHP Version:5.3.8
 Block user comment: N
 Private report: N

 New Comment:

There is a thread at the IIS forum, too: http://forums.iis.net/t/1190270.aspx
No feedback at all :-(

Is the issue described PHP or IIS related? 
Any opinions?
Anybody able to reproduce?

Best regards
Keith


Previous Comments:

[2012-06-25 15:00:50] lars_teuber at gmx dot de

Microsoft-IIS/7.5. Best regards, Lars.


[2012-06-25 14:54:00] larue...@php.net

you mean IIS or nginx?  thanks :)


[2012-06-25 14:45:35] lars_teuber at gmx dot de

Please find reproduce script below. The script stops whenever there is output 
send to a browser that is no longer listening. It will continue to run until 
you send anything. Best regards, Lars.

https://bugs.php.net/bug.php?id=60586
ignore_user_abort(true);
$path = sys_get_temp_dir() . '\\ignore_user_abort_' . date('Ymd_His', time());
echo $path;
flush();

$seconds = 30;
$time = time();
$i = 0;
while (time() - $time < $seconds) {
echo '. ';
flush();
$i++;
}

write_file($path, 'finished (' . $i . ' iterations)');

function write_file($path, $message)
{
$handle = fopen($path, 'wb');
if (!$handle) {
throw new Exception('fopen() failed');
}
if (fwrite($handle, $message) === false) {
fclose($handle);
throw new Exception('fwrite() failed');
}
if (!fclose($handle)) {
throw new Exception('fclose() failed');
}
}
?>


[2012-06-25 05:29:50] larue...@php.net

btw: I can not reproduce this with nginx


[2012-06-25 05:27:08] larue...@php.net

How did you identify it doesn't work?

I mean, could you give us a more specific description?




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

https://bugs.php.net/bug.php?id=60586


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60586&edit=1


[PHP-BUG] Bug #60586 [NEW]: ignore_user_abort=true has no effect on IIS with FastCGI

2011-12-21 Thread sauvant at aspera dot com
From: 
Operating system: Windows Server 2008 R2
PHP version:  5.3.8
Package:  IIS related
Bug Type: Bug
Bug description:ignore_user_abort=true has no effect on IIS with FastCGI

Description:

ignore_user_abort=true does not to work in an IIS FastCGI environment: The
process is stopped when sending output after the browser was closed.

Expected result:

The process should continue to run, even with the browser window being
closed and the script sending output.

Actual result:
--
The process stops.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=60586&edit=1
-- 
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60586&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60586&r=trysnapshot53
Try a snapshot (trunk):  
https://bugs.php.net/fix.php?id=60586&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60586&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60586&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60586&r=alreadyfixed
Need backtrace:  
https://bugs.php.net/fix.php?id=60586&r=needtrace
Need Reproduce Script:   
https://bugs.php.net/fix.php?id=60586&r=needscript
Try newer version:   
https://bugs.php.net/fix.php?id=60586&r=oldversion
Not developer issue: 
https://bugs.php.net/fix.php?id=60586&r=support
Expected behavior:   
https://bugs.php.net/fix.php?id=60586&r=notwrong
Not enough info: 
https://bugs.php.net/fix.php?id=60586&r=notenoughinfo
Submitted twice: 
https://bugs.php.net/fix.php?id=60586&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60586&r=globals
PHP 4 support discontinued:  
https://bugs.php.net/fix.php?id=60586&r=php4
Daylight Savings:https://bugs.php.net/fix.php?id=60586&r=dst
IIS Stability:   
https://bugs.php.net/fix.php?id=60586&r=isapi
Install GNU Sed: 
https://bugs.php.net/fix.php?id=60586&r=gnused
Floating point limitations:  
https://bugs.php.net/fix.php?id=60586&r=float
No Zend Extensions:  
https://bugs.php.net/fix.php?id=60586&r=nozend
MySQL Configuration Error:   
https://bugs.php.net/fix.php?id=60586&r=mysqlcfg