Free copied buffer
Sorry to open it again. For the first time I use git, i am not able to upload file, but for now, i can. The situation is following:
I am currently writing a addon for node , which read media file(.mp4) as source ,output .ts file as result. (A small hls server ) Everything went well, I believe everything are correctly freed in C++ part. I am using async worker to output buffer response to express. In C++ part I used CopyBuffer(NewBuffer could not work) to create correct result for buffer. The problem is following, when the request was canceled before the response, the buffer could not be free at all, it.contiuesly grows. It result in memory leak. So I am wondering, is it a way to free those copied buffer by nodejs if the request is canceled.
The library used to read a mp4 file is Bento4, and I use streaming-worker to write back to nodejs.
It could be some problem of nodejs, as @addaleax method, but I would like to share the issue here again.
as @addaleax method
If there is some previous context to this, would you mind linking it for me and everyone else to remember?