Too long a CGI session

Posted on 1997-06-26
Last Modified: 2013-12-25
      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.

Question by:feng042497
  • 3
  • 2

Accepted Solution

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.

Author Comment

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

Expert Comment

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

Author Comment

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.

Expert Comment

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.

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ready Made PHP Scripts 5 63
Scripting vs. Programming languages 25 151
Need to learn promise API 2 43
Some AHK commands fail in Microsoft OneNote 5 35
The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
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 …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 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

17 Experts available now in Live!

Get 1:1 Help Now