php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29982 Maximum execution timeout... ~300sec
Submitted: 2004-09-05 02:09 UTC Modified: 2004-09-05 08:37 UTC
From: walter at cybermight dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.3.8 OS: Windows2000Srv and Win2003Srv
Private report: No CVE-ID: None
 [2004-09-05 02:09 UTC] walter at cybermight dot com
Description:
------------
using:
Win2KSrv, IIS5, PHP4.3.8
Win2003Srv, IIS6, PHP4.3.8 (the latest stable version files)

File Upload attempt exceeding approx. 280-310 seconds:
CGI Timeout
The specified CGI application exceeded the allowed time for processing. The server has deleted the process.

Same error after attempting the following steps:
Upgrading to manual install of 4.3.8

php ini settings:
default_socket_timeout = 3600
auto_detect_line_endings = Off
safe_mode = Off
max_execution_time = 3600
max_input_time = 3600
memory_limit = 100M
post_max_size = 100M
enable_dl = Off (have tried = On)
cgi.force_redirect = 0
file_uploads = On
auto_detect_line_endings = On

IIS Application timeout is set to 60 minutes (standard 20).
IIS Connection timeoutset to 3600 (secs)

In the actual .php file consisting of the upload script I also added the
line:
set_time_limit(6000);

Independent of the browser used Netscape7, Opera7.x or IE6x, and independent of the platform used to upload larger files exceeding this execution time limit, it produces this error.

If there is a bugfix, it's certainly not completely eliminated in the 4.3.8 version, neither in  the STABLE_VERSION as offered/downloaded, installed, tried.

Unfortunately there is no fix for this at Microsoft either, no IIS updates resolving this bug. So who actually is it that this problem needs to be addressed to?

It takes about 5 minutes for PHP to cancel the session, so if you want to try it our you need to upload a big enough file depending on your connection e.g. 25MB file with Cable upload speed 384K, or upload a 5MB file from a dial-up, that will do to reproduce the error.

Any helpful input greatly appreciated!
Walter



Reproduce code:
---------------
http://cybermight.com/file_transfer/php_upload.php

Expected result:
----------------
files up to 50MB or even more sometimes should be possible to be uploaded via most common connection speeds cable, dial-up, DSL without timing out the CGI.





Actual result:
--------------
tested - used platforms to attempt large upload:
MACOS9,X - Linux latest - Windows latest (XP, Server2003)

tested PHP4.3.8 on Win2000 and  2003 Servers running IIS 5 and 6

Error summary in browsers:

Opera 7x:
CGI Timeout
The specified CGI application exceeded the allowed time for processing. The server has deleted the process.

Internet Explorer 6x:
The page cannot be displayed 
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. 

Netscape:
Popup: The document contains no data

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-05 08:33 UTC] walter at cybermight dot com
Never mind, I found the problem and resolved it.
It is a setting in IIS5 and 6 specifying the CGI timeout in seconds, default 300. File 180MB got uploaded, time 28+min

No PHP bug!!

www.cybermight.com
 [2004-09-05 08:37 UTC] tony2001@php.net
No bug -> bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Mar 30 05:01:27 2024 UTC