Are you sure this is an issue with hapi or are you just looking for some help?
This is an issue with hapi. You may or may not care to fix it.
What are you trying to achieve or the steps to reproduce?
Create one or more Server objects.
What was the result you received?
This function captures various things, including the server object. The memory associated with the last call can never be released because this.cache is on the prototype.
What did you expect?
I don't expect much out of life.
Context
- node version: 7.3.0
- hapi version: master
- os: macOS
- any other relevant information:
If you care to fix this, it should be as simple as moving cache to the instance instead of the prototype. I can give it a shot and send a PR if you want. If it's not that important or by design, just close the issue.
Are you sure this is an issue with hapi or are you just looking for some help?
This is an issue with hapi. You may or may not care to fix it.
What are you trying to achieve or the steps to reproduce?
Create one or more
Serverobjects.What was the result you received?
This function captures various things, including the
serverobject. The memory associated with the last call can never be released becausethis.cacheis on the prototype.What did you expect?
I don't expect much out of life.
Context
If you care to fix this, it should be as simple as moving
cacheto the instance instead of the prototype. I can give it a shot and send a PR if you want. If it's not that important or by design, just close the issue.