#16000 [Opn]: fpassthru and timeouts

From: Date: Sat, 18 Jan 2003 21:09:38 +0000
Subject: #16000 [Opn]: fpassthru and timeouts
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969351021@lists.php.net to get a copy of this message
ID: 16000 Updated by: philip@php.net Reported By: lance_laureys@3com.com Status: Open Bug Type: Documentation problem Operating System: 2000 Server PHP Version: 4.1.2 New Comment: Anyone have a clue on how or where to document this? All suggestions and ideas welcome :) It's related to: Directive: max_execution_time Function: set_time_limit Docs: features.connection-handling Stated is a default 300 second limit in IIS/CGI, do other web servers and SAPI combinations have such issues? Previous Comments: ------------------------------------------------------------------------ [2002-05-08 03:48:27] yohgaki@php.net > I did find the solution. In IIS there is a CGI timeout function defaulted > to 300 seconds. THIS MUST BE raised in order for slow dialups to download > large files. If it is not raised, IIS assumes that the script is done or > hung and kills it. Made this to a doc problem. ------------------------------------------------------------------------ [2002-05-03 23:33:38] yohgaki@php.net Some browsers have hard coded timeout. Try different browsers see if it helps. ------------------------------------------------------------------------ [2002-03-11 11:28:34] lance_laureys@3com.com There seems to be a timeout problems with using fpassthru. Code : header( "Content-type: application/octet-stream" ); header( "Content-Length: $c_ByteSize" ); header( "Content-Disposition: attachment; filename=\"$F\"" ); $fp = fopen("D:\\CarrierFTP_Files\\".odbc_result($result, "FilePath").$F,"r") or die("Can't find file."); fpassthru($fp); When the person starts getting the file, after 5 min 2 sec it quits and tells me it has finished. I have increased timeouts everywhere, but it never gets the file. Suggestions on this? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16000&edit=1

« previous php.doc (#969351021) next »