jurisv / nodejs.extdirect

Ext.Direct connector for node.js (npm module)
41 stars 16 forks source link

connection reset/die on exception in direct methodes #11

Closed mithrandirii closed 11 years ago

mithrandirii commented 11 years ago

hi,

i discovered the following problem:

on any exception (e.g. mysql) in direct methods the process/server dies. i think the catch in lib/router.js (line 100) will never catch an exception, because the direct function is executed asynchronously. => the exception is throw outside/after the try/catch.

i'm not sure if i miss something. some help would be wonderful ;).

mithrandir

jurisv commented 11 years ago

Implemented in 1.2.0

mithrandirii commented 11 years ago

thanks a lot ! ;)