Skip to content

one server is always leaked #3447

@cjihrig

Description

@cjihrig

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.

Metadata

Metadata

Assignees

Labels

bugBug or defect

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions