> Is there a way for the CGI application to tell Apache that it is still > working on it and just wait (reset the timer)?
I have always assumed that the web server defines "time out" as the delay between the time the web server launches the CGI program and the time the CGI program starts sending output to the standard output device. Does your program wait until it has completed the search before sending anything to the standard output? If so, you may be able to handle this by sending anything before you start your search. Even sending just the header may do the trick. If the web server defines "time out" as the total time the CGI program executes, another idea is to launch another program asynchronously with ShellExecute from your CGI. I suspect that some web servers may consider this a security issue, but if they allow a CGI to launch another program asynchronously, that would also avoid the timeout. This approach would require the CGI to return a status page with an autorefresh that eventually returns the output when that is complete. If running ShellExecute is disallowed by the web server, let me know. I have another approach that I believe would work regardless of the constraints imposed by the web server, but requires a longer explanation. If either of the methods above work, there is no point getting into the third approach. Glenn Lawler www.incodesystems.com -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Doug Hale Sent: Tuesday, July 06, 2010 12:01 PM To: [email protected] Subject: Re: [delphi-en] Prevent CGI interface timeout. I think that the first CGI has to respond to Apache before a timeout. So I'm not sure how the second CGI would help. Doug On 7/6/2010 10:27 AM, David Smith wrote: > How about spawning another CGI session from within that session to the search? > > --- On Tue, 7/6/10, Doug Hale<[email protected]> wrote: > > From: Doug Hale<[email protected]> > Subject: [delphi-en] Prevent CGI interface timeout. > To: [email protected] > Date: Tuesday, July 6, 2010, 8:43 AM > > As I said in another post, I have a CGI application that serves vary > large files to clients. It also does a search for keywords in the file > names. Sometimes the Apache/CGI interface times out during the search. > Is there a way for the CGI application to tell Apache that it is still > working on it and just wait (reset the timer)? > > > > Is there a way for the CGI application to return partial results as the > > results are generated? > > > > Doug

