Client Browser Time-out

Posted on 2004-10-18
Medium Priority
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
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
  • 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 2000 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses

719 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