Node.js socket.io server stops with no warnings or messages? -


i have socket.io server running on node.js. no big deal, it's simple server receives , send messages client.

server.listen(3000, function() {    console.log('listening on port 3000'); }); 

so in console, "listening on port 3000" , works fine. after amount of time site , nothing works, server seems stop receiving , sending messages, in console still "listening on pot 3000". stop , start again , works again. couldn't keep track of how time takes stop, or if it's fixed amount.

what can do?

try taking npm forever. npm package reboots server no matter what. can kill process , start until specify want module stop server.

here documentation. believe solve problem.

http://blog.nodejitsu.com/keep-a-nodejs-server-up-with-forever/


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -