Solved

Too long a CGI session

Posted on 1997-06-26
5
184 Views
Last Modified: 2013-12-25
Hi,
      My CGI session operating on a huge Database may take a very long time if users want to select too much data from the database.  The problem is if users request small size of data which takes short time, it works well; but when the size of data is very big which takes very long time, the CGI bin will stop after some time giving me "Contain no data" message and no result will be produced on the screen.  But when I check the temp files, actually, it produced the data but just part of it.  It means that it works.  I guess the browser has a timeout.  If the running or the loading time surpass some time limit, it will consider it is in dead loop or cannot be download so that it stop at once.  I just wonder if my guess is correct or not.  Thanks for your time.

Gang
0
Comment
Question by:feng042497
  • 3
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
faster earned 50 total points
ID: 1828589
This is correct.  Your CGI can send some comments during the process so that it will not time you out.
0
 

Author Comment

by:feng042497
ID: 1828590
Is there any better solutions for this problem?  Like turning off that timeout switch or something like that.  Thanks.
0
 
LVL 7

Expert Comment

by:faster
ID: 1828591
You have no way to turning off timeout.
0
 

Author Comment

by:feng042497
ID: 1828592
I think I already got the solution.  I just set the timeout to a very large number, like 20 min, in web server configure file which I think is enough to run my cgi bin.  I try it and it looks working well.
0
 
LVL 7

Expert Comment

by:faster
ID: 1828593
Sad to say, it is not going to work.  Both the server, browser have a time out value, you can set the server side, but how about the browser?  What's worse, the proxy servers that stand between the server and the broswer also have their time out.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
The viewer will learn how to dynamically set the form action using jQuery.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question