-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
Potential memory leak in UDP #6189
Copy link
Copy link
Closed
Labels
dgramIssues and PRs related to UDP and the dgram module.Issues and PRs related to UDP and the dgram module.dnsIssues and PRs related to the dns subsystem.Issues and PRs related to the dns subsystem.memoryIssues and PRs related to Node.js memory management or memory footprint.Issues and PRs related to Node.js memory management or memory footprint.
Description
Activity
Metadata
Metadata
Assignees
Labels
dgramIssues and PRs related to UDP and the dgram module.Issues and PRs related to UDP and the dgram module.dnsIssues and PRs related to the dns subsystem.Issues and PRs related to the dns subsystem.memoryIssues and PRs related to Node.js memory management or memory footprint.Issues and PRs related to Node.js memory management or memory footprint.
UDP sockets seem to have a memory leak. Seems that it's not the first time it had that, so it feels to me that it might be a regression. The following test code reproduces it:
Memory grows approximately at a rate of 1 MB/s in my machine. I assume that a UDP socket should just send the data (no matter if no one is listening on the other side), so there should not be this huge memory consumption.