title: AJAX Requests and Connection Timeout: Chrome doesn't timeout after over 15 hours, but what about IE?
body: <p>I am writing a web application that takes a script input from a client-side browser and sends it to a Java servlet through AJAX. Upon receiving the script, the Java class executes the script and sends some information back to the web page. </p>
  
  <p>An important component of the web application that I am testing right now is the connection timeout and when/if a browser connection will timeout after long periods of time. For me, it is important that the connection does NOT timeout before the Java servlet sends a response, or at least the timeout should be handled.</p>
  
  <p>I have researched ways of handling this and I have a vague understanding of what needs to be done, but first thing is first, I decided to try to get the connection to timeout in order to understand how everything will behave WITHOUT any sort of error handling. Yesterday, I sent the servlet a command from the script input of the client-side which told the servlet to sleep until this morning. I come back this morning to find that in Chrome, the servlet response was successfully received and happily showing itself in the browser. </p>
  
  <p>In IE7, I did not have as much luck :(</p>
  
  <p>After over <strong>15 hours</strong> of waiting on a response, IE7 timed out and Chrome did not. I figured either both would time out or neither would. </p>
  
  <p>Also, it might be helpful to know that I am using Struts2 framework.</p>
  
  <p>Can anyone explain this? </p>
  
  <p>Thanks!</p>
  
  <p>P.S. I tried to be as detailed as I could in my question explanation, but I will be happy to include any extra information. I also did not include code, because I did not think any would be relevant, but again, please tell me what code you'd want me to include if you'd like to see some.</p>