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

From: Date: Wed, 22 Jan 2014 21:41:51 +0000
Subject: Bug #66556 [NEW]: Readfile() + big file + slow download = 500, windows server 2012, php 5.5.8
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183961@lists.php.net to get a copy of this message
From:             oli dot laurel at arcor dot de
Operating system: Windows Server 2012
PHP version:      5.5.8
Package:          IIS related
Bug Type:         Bug
Bug description:Readfile() + big file + slow download = 500, windows server 2012, php 5.5.8

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



Thread (5 messages)

« previous php.bugs (#183961) next »