javascript - Node.js throws write EIO exception at random time -


I am writing a game server using node.js + socket.io + Winston and My server dies every day due to this exception:

  Error: Write EIO to mistake appointment (net.js: 901: 11) Object.afterWrite (net.js: 718: 19)   

I suspect that I am using Winston. I have server.js and room.js classes in which I need Winston with this statement: var winston = require ('winston'); and server.js I register this file with logging:

  winston.add (winston.transports.File, {filename: 'Server.log'}); Winston.handleExceptions (new winston.transports.file ({filename: 'errors.log'}))   

in room.js I just Winston .info () method

Can it be due to many rooms examples or something?

pause apache crash

: By using this module you can crash your app You can write your code in the domain block and it will never crash again. But be careful, you have to solve your problem first

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -