Node.js unresponsive until key press on console -
i have node.js app, runs on windows server 2008. i'm facing weird problem here.
my app more 1 async tasks. sending data socket.io, mysql, http connections, tcp connections etc.
my node app becomes unresponsive on socket.io end, , starts responding again after key press on console. known issue? bypasses around such behavior?
note: using console.log heavily keep track of current operation , errors in process.
i did bit of background check , came following conclusions.
the powershell console on windows server 2008 goes on 'pause' mode when clicked on it. released again if click elsewhere. http://www.vistax64.com/powershell/112032-script-pauses-when-you-click-powershell-text-window.html
if notice, console.log
async. console.warn
, console.error
blocking. these not async.
the console pause might block some/most part of node.js operations. esp. socket.io @ default debugging level report more console.log
.
Comments
Post a Comment