Bug #65453 [Com]: Readfile() + mpg = http status 500, windows server 2008 r2 sp1, php 5.5.1
| From: | oli dot laurel at arcor dot de | Date: | Sun, 15 Dec 2013 15:22:05 +0000 |
| Subject: | Bug #65453 [Com]: Readfile() + mpg = http status 500, windows server 2008 r2 sp1, php 5.5.1 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183339@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65453&edit=1
ID: 65453
Comment by: oli dot laurel at arcor dot de
Reported by: oli dot laurel at arcor dot de
Summary: Readfile() + mpg = http status 500, windows server
2008 r2 sp1, php 5.5.1
Status: No Feedback
Type: Bug
Package: IIS related
Operating System: Windows Server 2008 R2 SP1
PHP Version: 5.5.1
Block user comment: N
Private report: N
New Comment:
hi,
problem still exists unter windows server 2012 + iis + php 5.5.6
Previous Comments:
------------------------------------------------------------------------
[2013-10-17 09:05:18] oli dot laurel at arcor dot de
Problem still exists, no further Information was required from me.
if i missed something, please keep me up.
------------------------------------------------------------------------
[2013-10-15 11:54:48] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
------------------------------------------------------------------------
[2013-09-04 14:41:51] sb at crawler-excavators dot com
hi,
today i installed on a windows server 2008 r2
nginx-1.4.2
and
PHP/5.5.3
and did same test as oli did. Download will NOT be interrupted.
Seems problem only exists in bond with iis and php.
Access log also show only HTTP-Status 200.
C:\nginx>"C:\Program Files (x86)\GnuWin32\bin\wget.exe" --limit-rate=20k --no-ch
eck-certificate --server-response http://127.0.0.1/index.php
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc
--2013-09-04 16:28:57-- http://127.0.0.1/index.php
Verbindungsaufbau zu 127.0.0.1:80... verbunden.
HTTP Anforderung gesendet, warte auf Antwort...
HTTP/1.1 200 OK
Server: nginx/1.4.2
Date: Wed, 04 Sep 2013 14:28:57 GMT
Content-Type: audio/mpeg
Content-Length: 41598976
Connection: keep-alive
X-Powered-By: PHP/5.5.3
Content-Disposition: inline; filename="movie.mpg"
X-Pad: avoid browser bug
Cache-Control: no-cache
Länge: 41598976 (40M) [audio/mpeg]
In »index.php« speichern.
11% [===> ] 4.685.600 20,0K/s eta 30m 2s
Also with PHP/5.5.2
C:\nginx>"C:\Program Files (x86)\GnuWin32\bin\wget.exe" --limit-rate=20k --no-ch
eck-certificate --server-response http://127.0.0.1/index.php
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc
--2013-09-04 16:35:05-- http://127.0.0.1/index.php
Verbindungsaufbau zu 127.0.0.1:80... verbunden.
HTTP Anforderung gesendet, warte auf Antwort...
HTTP/1.1 200 OK
Server: nginx/1.4.2
Date: Wed, 04 Sep 2013 14:35:05 GMT
Content-Type: audio/mpeg
Content-Length: 41598976
Connection: keep-alive
X-Powered-By: PHP/5.5.2
Content-Disposition: inline; filename="movie.mpg"
X-Pad: avoid browser bug
Cache-Control: no-cache
Länge: 41598976 (40M) [audio/mpeg]
In »index.php« speichern.
11% [===> ] 4.587.296 20,0K/s eta 30m 7s
Any suggestion for next steps to restrict the problem?
------------------------------------------------------------------------
[2013-08-30 11:55:10] oli dot laurel at arcor dot de
thx for reply to all. glad to hear i'm not alone (-:
tested different constellations in the last days.
but didnt find any working constellation.
tried to increase timeout settings in iis but no success.
maybe you figured out something new?
------------------------------------------------------------------------
[2013-08-23 14:06:05] ab@php.net
From what i could debug now, there is no crash in PHP itself. What happens is that PHP
exits early but IIS continues to deliver data to client. What I can assume now is that
PHP fills the IIS buffers and waits for taker, but IIS doesn't ask anymore because the
client is downloading with the very low bandwidth and the IIS buffer emties too slowly.
Therefore two possibilities should be checked with IIS
- increasing timeout between PHP and IIS
- increasing internal IIS buffers, so then PHP can fill it up before it's full
Maybe it had really sense to check with IIS specialists anyway. What i'm additionally
going to do now is to check if the same happens on linux with say nginx+fastcgi,
because if it does - that were sure PHP issue.
------------------------------------------------------------------------
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=65453
--
Edit this bug report at https://bugs.php.net/bug.php?id=65453&edit=1