pakastin
pakastin3mo ago

Memory leak in Deno.serve?

i have simple proxy server like this and it has memory leak issue which i have no idea how to tackle: https://gist.github.com/pakastin/503dcbcd141e2895a3d863253483c831
Gist
deno-proxy.js
GitHub Gist: instantly share code, notes, and snippets.
3 Replies
bartlomieju
bartlomieju3mo ago
Could you please open an issue in the Deno repo?
pakastin
pakastinOP3mo ago
ok, thanks!
rafar
rafar3mo ago
sorry maybe I’m missing something but are you also terminating the socket proxy on connection close? or disposing of it? I think that works as an even listener which would explain why memory leaks. Let me know if that helps or if I missed something, that’s a very interesting problem. good luck!

Did you find this page helpful?