Skip to content

Document best practice to eliminate handlesΒ #44

@MartinMuzatko

Description

@MartinMuzatko

Hey there! First of all, thank you a lot for this nice tool - this really shows how the internals of node keep the process alive.

I would love to know what exactly is the "best practice" in terms of closing handles.

I see there are TLSWRAP, DNSCHANNEL, HTTPPARSER and TCPWRAP open because I'm fetching data and open db connection.. So for a long-running process, that is ok, but what is the best practice to clean up? Does it hurt performance-wise to keep these handles open? I would think so.
But I have no idea how to stop them. A little bit of documentation how to deal with these would be very nice. Or at least a link to a guide :)

Thank you so much in advance.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions