title: Server stops responding after a while
body: <p>I am facing a weird problem where I start my <strong>https</strong> server using node <strong>https</strong> module and <strong>self-signed certificate</strong>-</p>
  
  <pre><code>var express = require('express');
  var app = express();
  var https = require("https");    
  
  var privateKey  = fs.readFileSync(require.toUrl(appConfig.get("ssl:key")), 'utf8');
  var certificate = fs.readFileSync(require.toUrl(appConfig.get("ssl:cert")), 'utf8');
  
  var credentials = {key: privateKey, cert: certificate};
  
  https.createServer(credentials, app).listen(443);
  console.log('listening on port# ' + 443);
  </code></pre>
  
  <p>The server keeps responding to get/put/post requests for few hours and then takes forever to return response to requests.</p>
  
  <p>I am using <strong>forever</strong> module and forever logs give no error or termination commands.</p>
  
  <p>Any help is greatly appreciated</p>