pakastin
pakastin6mo 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
bartlomieju6mo ago
Could you please open an issue in the Deno repo?
pakastin
pakastinOP6mo ago
ok, thanks!
rafslockz
rafslockz6mo 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?