Skip to content
February 26, 2012 / kiranpatils

Long-running processes and browser timeout issue (mainly Internet Explorer)?

Challenge:

This week we faced strange issue [Oh yes, Issues are always strange, that’s why we know them as an issue! :-)].

Basically we were running a long running operation on server and in between our browser displayed “Internet Explorer cannot display the webpage” page. (Needless to say, we are using Internet Explorer)  We checked at our server-side (logs, sql connection, web  server etc.) and everything was perfect! We were clueless whether our server operation got completed or not.

If you are also facing this same issue, then keep reading we have a solution for you!

Solution:

Okay, so we were clueless what to do? Then suddenly it stroked in my mind. As IE shown this error page, why not try the same process with Firefox? [So long back faced similar issue and tried with FF and it worked. But at that time never researched why it worked!]

And you guess what? It worked for us. i.e. the same process got completed without changing anything on server-side code!

Okay, so we were happy as our task got completed. But we were not sure why it worked. [And my colleague Muktesh asked me a question, why it worked?].

Really good question! Then I started my research and found something interesting to share with all of you! Really interesting to read here you go:

Following Stackoverflow thread has some good points on this:

http://stackoverflow.com/questions/633075/browser-timeouts-while-asp-net-application-keeps-running

CAUSE

By design, Internet Explorer imposes a time-out limit for the server to return data. The time-out limit is five minutes for versions 4.0 and 4.01 and is 60 minutes for versions 5.x, 6, and 7. As a result, Internet Explorer does not wait endlessly for the server to come back with data when the server has a problem.

Internet Explorer imposes a time-out limit for the server to return data. By default, the time-out limit is as follows:

Internet Explorer 4.0 and Internet Explorer 4.01 5 minutes
Internet Explorer 5.x and Internet Explorer 6.x 60 minutes
Internet Explorer 7 and Internet Explorer 8 60 minutes

When the server is experiencing a problem, Internet Explorer does not wait endlessly for the server to return data.

Source : http://support.microsoft.com/kb/181050

Proposed Solution: Found some good links which gives some solutions which you can try [Frankly, Haven’t tried them on my own, try at your own risk! — I strongly recommend to use Firefox]

http://intersoftpt.wordpress.com/2009/06/23/resolve-page-cannot-be-displayed-issue-in-ie8/

http://www.ehow.com/how_5943517_control-browser-timeouts-ie-7.html

Now, we know what’s wrong with IE? But now the second question comes up Why it works with Firefox? Don’t worry we have answer for this as well.

Currently, Firefox timeout is determined by the system-level connection establishment timeout [Source : http://kb.mozillazine.org/Network.http.connect.timeout]. It was earlier issue in Firefox as well and they fixed it – https://bugzilla.mozilla.org/show_bug.cgi?id=592284

If you would like to know what your System-level connection is, please refer : http://support.microsoft.com/default.aspx?scid=kb;en-us;314053 [Source: https://bugzilla.mozilla.org/show_bug.cgi?id=142326]

Summary : When you have long running operation running on server and would like to run it from browser and if browser is displaying client side error, Firefox is a good choice!

Other Resources:

http://stackoverflow.com/questions/1192375/timeout-behavior-of-different-browsers

Happy Long running operation! 🙂

5 Comments

Leave a Comment
  1. marshalbajaj / Feb 26 2012 2:00 pm

    Its always good to read your Blogs, Sir

    The content : undoubtedly hitting the problem to the core,
    The presentation, The way of writing : truly admirable.
    The sources citation indicating of being honest personality.
    Get to learn many things from you, Sir
    Every single thing speaks leaps & bounds.

    Keep Blogging 🙂
    Regards,
    Deep

    • kiranpatils / Feb 26 2012 3:26 pm

      Hello Deep,

      Thanks for the nice words!

      I don’t do anything extra for it, somehow it happens automatically by grace of god! [When I write any blog, I keep my situation in my mind when I was not showing the solution of current problem.]

      Keep reading!

      Take care,
      Kiran

  2. Hashem aal Isa / Sep 15 2012 6:03 pm

    I use Google Chrome and I do not face such problems.
    all websites open immediately

  3. dachausbau / Jun 2 2013 4:14 pm

    Attractive section of content. I just stumbled upon your website and in accession capital to assert that I get in
    fact enjoyed account your blog posts. Any way I will be
    subscribing to your augment and even I achievement you access consistently fast.

Trackbacks

  1. Browser timeout error while doing Sitecore version upgrade « Sitecore basics!

Leave a comment