joyent/node — Issue #2810: UDP sockets don't release Buffers until close()
Author: mojodna
Created: 2012-02-22 23:39:26+00:00
State: open

I've been using a long-lived UDP socket to publish metrics. It appears that, at least on Windows, Buffers passed to `dgram.send()` aren't freed until `dgram.close()`. I would expect them to be freed at the same time that `dgram.send()`'s callback is fired. Periodically closing and recreating the long-lived socket eliminates the long-term impact of the leak, but is only a workaround.

I'll attempt to write some tests for this soon, in part to determine whether not-Windows is impacted.