title: setInterval() ajax call is working on local server but giving error in online server
body: <p>I have a website in which there is chatroom where I use to send AJAX request to check if a person received a new message or not. If a new message is received, it gets appended to the DOM without refreshing the page (like Facebook).</p>
  
  <p>I am using:-</p>
  
  <pre><code>setInterval(check_if_new_message, 1000);
  </code></pre>
  
  <p>i.e. one AJAX request to check message every one second.</p>
  
  <p>This was working fine as it was supposed to when I was trying to run on the local server. But then I bought Starter Shared Linux Hosting on GoDaddy and then my ajax requests are not working properly. First 100-150 requests are working fine but after that, it stars giving an error like <strong><code>net::ERR_CONNECTION_CLOSED</code></strong> in the console of the browser.</p>
  
  <pre><code>setInterval(check_if_new_message, 1000);
  </code></pre>