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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Interactive Way of Training for the AWS CSA Exam

An interactive way of learning that will help you visualize core concepts so that you can be more effective when taking your AWS certification exam.  Built for students by a student to help them understand the concepts that they are being taught.

Question has a verified solution.

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

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

615 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