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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -