Client Browser Time-out

Posted on 2004-10-18
Last Modified: 2012-05-05

I am currently developing a web application in Java.  In the web application, we are obliged to use a synchronous interaction between the server and the client, even when processing major updates (which take about 2-4 hours). Therefore, while the server is busy processing, the client browser just displays "opening web page http://officeOne/myApplication/processEmployees" as a message on the Internet Explorer's status bar while waiting for the server to finish.  Now, the problem is that some of the client PCs display the "Page could not be displayed" error of the Internet Explorer after sometime (About 10 minutes). On other client PCs, this error does not appear. It just waits for the server to finish processing. Though the server still continues to process the updates even after the page is redirected to the error page, it bothers me to see such an error, and may give other users the wrong notion that the application has an error.

I am quite sure that this maybe a browser problem (or maybe I'm wrong), but I am using a browser (IE6) on all the clients.  The reason why I concluded this is because i tried connecting to the same server using different clients.

Also, on the web.xml of the application, i have set the session timeout to -1, to signify that there would be no timeout from the server side.

Below is the software configuration of the server:
O.S.: Windows 2000 Advanced Server Service pack 4
Web Server : Apache Tomcat 4.03

Different clients use the following operating systems:
Windows 2000 Professional (SP4)
Windows 2000 Server (SP4)
Windows 2000 Advanced Server (SP4)
Windows XP Professional (SP1)

All clients use Internet Explorer 6 (6.0.2600.0000)

Does anybody know which causes the error and what solution could be given to such a problem?

Hope somebody could help me with this.

Thank you very much.

Question by:spoj
  • 2
  • 2

Expert Comment

ID: 12336940

Can you make it send some sort of data even a full stop every so often so IE does not think anything is being sent, simlar things happen with server side scripting, i also say flush the data from the buffer every 50 records or so then write a full stop into the page so IE is seeing progresss.

If something simlar could be done with java then this may be a good option it works for other server side timeouts, just make IE think something is happerning , its not intelligent to wait, its microsoft.

Hope it helps dude.


Accepted Solution

JRSharpUK earned 500 total points
ID: 12336949

There is also a reg edit to stop IE Timeout

Start the Registry Editor
Go to HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ InternetSettings
Select New > DWORD from the Edit menu
Call it ReceiveTimeout with a data value of <number of seconds>*1000

For example, if you want the timeout duration to be 10 minutes, set the ReceiveTimeout data value to 600000 (600 * 1000)

Restart your computer


Expert Comment

ID: 12343181
This is an intermediate soln to ur problem.... Instead of loading the page directly (The page that takes lot of time) ..add an intermediate page with a animated gif or some javascript stuffand let that page call ur final page.

In this way the user knows that something is goingon.

Also you should checkthe server time outs. Increase the server time out. Also if your update is not a single statement try to divide it on different pages. I have an update procedure in ASP god knows why but it takes 2 hrs to run... what i do is I take 100 values at a time and make a recursive call to the page ... that way there is a constant too and fro from the browser to the server

Please let me know if that helps


Author Comment

ID: 12344189

I have read your comments regarding the matter. I will try both your solutions.

Jim: registry editing.
Rohan : Animated Gif stuff on other page.

btw, rohan, i have set the server timeout to -1, so there won't be a timeout from the server side.....

I'll let you know about the progress once I have implemented your solutions.

Thank you very much.


Author Comment

ID: 12344447

Jim, I have tried your suggestion. First, I tried setting it to 60000 (decimal). I was expecting that my experimental update would take 3 minutes to finish. As expected, the browser timed-out, but the server still continues to process the update, which is a good sign. Now, i will just have to set the ReceiveTimout to 0xFFFFFFFF so that there won't be a problem about the timeout on the browser (based on my computation, it would take 49.7 days before it would timeout, if there is such an update).

Rohan, as much as I wanted to modify the pages, I was not allowed to do it due to some constraints (all the pages having updates will have to be modified).  When I got involved in this development, the application is in its final stages, and making drastic (???) changes to the pages would cause some mandays. We will have to modify 40-50 pages having updates. Anyway, i will be taking note of your suggestion just in case i get involved in a ground-up development.

Again, I thank you all for your efforts in helping out.


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

914 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

16 Experts available now in Live!

Get 1:1 Help Now