title: Node.js, Sails.js servers time out
body: <p><strong>Environment</strong>: Windows Server 2008</p>
  
  <p>I have a Node.js and a Sails.js apps. For example, my Node.js app does something like this:</p>
  
  <pre><code>http.createServer(function(req,res){...}).listen(8000);
  </code></pre>
  
  <p>Both are really simple apps, but I need them available at all times. I had problems creating a Windows Service, so i created a task for each app in the Task Scheduler. </p>
  
  <p>They seem to be working fine except for when the apps haven't been used for over an hour or so (not sure on the exact timing). After some time when I go to localhost:8000, my Node.js app (same with my Sails.js app) responds only after about 10-20 seconds, and in less than a second in the following requests.</p>
  
  <p>I am thinking about writing another task :) - a warm-up script that will send periodic requests to keep the apps running. But there's gotta be a better way! Is there a server timeout setting in Node.js/Sails.js that can be disabled/modified?</p>