senecajs / seneca-web

Http route mapping for Seneca microservices.
MIT License
76 stars 44 forks source link

Web server (hapi or express) crashes or hangs when plugin returns an error object #111

Open djensen47 opened 8 years ago

djensen47 commented 8 years ago

When a plugin returns an error object, the web server crashes or hangs.

Express: crashes: senecajs/seneca-web-adapter-express#8 Hapi: hangs and leaks memory (I have not yet created an issue on senecajs/seneca-web-adapter-hapi for this)

I figure that since it is happening on both, the root cause must be seneca-web. I tried to trace through the code but after a few hours I couldn't figure it out.