-
Notifications
You must be signed in to change notification settings - Fork 5
Ensure res is defined before calling res.resume() #113
Conversation
My colleague Cynthia noticed this recent change to the plugin. In production we are seeing multiple apps crashing because res is undefined. This is a speculative fix which probably needs more work from someone who knows a lot more about this plugin than me. Co-Authored-By: Cynthia Mbulu <cyntibinti@users.noreply.github.com>
This was introduced recently in #112 - @thebanjomatic @colincasey is it possible that We're seeing unhandled errors with the stack:
|
i think the correct fix here is to move the |
@apaleslimghost I agree, it would be better to move the logic to after If I was planning on continuing maintenance on this plugin I would demand a bit more here but I'm currently trying to get this plugin retired and replaced with equivalent metrics using Node's Performance APIs instead of this C++ addon. Thanks for reporting this @alexmuller. Apologies for not catching this when reviewing #112. This plugin has to be tested manually and I did not hit that edge case while verifying that the memory leak was fixed. |
Includes a fix where the response handler in the metrics plugin can cause a crash: - heroku/heroku-nodejs-plugin#113
Includes a fix where the response handler in the metrics plugin can cause a crash: - heroku/heroku-nodejs-plugin#113
@alexmuller this fix is included in the v231 release of the |
Thanks for fixing this so quickly @colincasey! |
My colleague Cynthia noticed this recent change to the plugin.
In production we are seeing multiple apps crashing because
res
is undefined.This is a speculative fix which probably needs more work from someone who knows a lot more about this plugin than me.
We have ticket 1324529 open for this issue.