Solved

Too long a CGI session

Posted on 1997-06-26
5
182 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
Comment Utility
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
Comment Utility
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
Comment Utility
You have no way to turning off timeout.
0
 

Author Comment

by:feng042497
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now