You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since PROXY_EVENTS are shared between every instance of a restify server, and upgrade is added but never removed, all future instances of Server will have the upgrade event proxied.
Are you willing and able to fix this?
Yes. It seems the fix should be to make PROXY_EVENTS local.
The text was updated successfully, but these errors were encountered:
Bug Report
Restify Version
5.x
Node.js Version
All
Expected behaviour
Constructor should only effect the object being instantiated
Actual behaviour
Constructor effects all future server objects
Cause
https://github.com/restify/node-restify/blob/5.x/lib/server.js#L306-L311
Since
PROXY_EVENTS
are shared between every instance of a restify server, andupgrade
is added but never removed, all future instances ofServer
will have theupgrade
event proxied.Are you willing and able to fix this?
Yes. It seems the fix should be to make
PROXY_EVENTS
local.The text was updated successfully, but these errors were encountered: