Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Too long a CGI session

Posted on 1997-06-26
5
Medium Priority
?
191 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 100 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The viewer will learn how to count occurrences of each item in an array.
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…
Suggested Courses

885 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