Bug #66556 [Com]: Readfile() + big file + slow download = 500, windows server 2012, php 5.5.8

From: Date: Fri, 07 Feb 2014 16:00:50 +0000
Subject: Bug #66556 [Com]: Readfile() + big file + slow download = 500, windows server 2012, php 5.5.8
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184195@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66556&edit=1

 ID:                 66556
 Comment by:         cristina dot matos at gmail dot com
 Reported by:        oli dot laurel at arcor dot de
 Summary:            Readfile() + big file + slow download = 500, windows
                     server 2012, php 5.5.8
 Status:             Open
 Type:               Bug
 Package:            IIS related
 Operating System:   Windows Server 2012
 PHP Version:        5.5.8
 Block user comment: N
 Private report:     N

 New Comment:

Hello there, was this issue ever resolved? I am having the same problem. I actually see the download
happening but the zip file is corrupted.


Previous Comments:
------------------------------------------------------------------------
[2014-01-22 21:41:51] oli dot laurel at arcor dot de

Description:
------------
hi,
sorry for open a new bug, but i can't reopen #65453.
problem still exist.

create files with following content:
[client, c:\tmp\wget.cmd]
"C:\Program Files (x86)\GnuWin32\bin\wget.exe" --limit-rate=20000 --server-response http://127.0.0.1/index.php

[server, d:\www\index.php]
<?php
$track = "movie.mpg";
if (file_exists($track)) {
    header("Content-Type: audio/mpeg");
    header('Content-Length: ' . filesize($track));
    header('Content-Disposition: inline; filename="movie.mpg"');
    header('X-Pad: avoid browser bug');
    header('Cache-Control: no-cache');
    readfile($track);
    exit;
} else {
    header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found', true, 404);
    echo "no file";
}

?>

[server, d:\www\movie.mpg]
any file greater than 60mb

now start download by executing wget.cmd
effect: download will always be interrupted

os: windows server 2012 / windows server 2008R2
PHP: 5.5.8

Test script:
---------------
see top

Expected result:
----------------
download should not be interrupted

Actual result:
--------------
download will always be interrupted


------------------------------------------------------------------------



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


Thread (5 messages)

« previous php.bugs (#184195) next »