Re: Are NIF resources meant to be destroyed immediately on GC?
Sean Hinde <[email protected]>
| Newsgroups | gmane.comp.lang.erlang.general |
|---|---|
| Message-ID | <[email protected]> |
> On 25 Nov 2020, at 17:28, Max Lapshin <[email protected]> wrote: > >> found a way to leave a socket connection open once it had "gone out of scope". > > 100% it was a bug of their benchmark. > > Reason was very simple: this C++ programmer just wanted job security. Oh yeah! Mission accomplished. I think he just opened a socket, didn't store the socket ref in the process state, but kept the process alive. His conclusion was that the Erlang GC leaks sockets.