processone / stun

STUN and TURN library for Erlang / Elixir
http://www.ejabberd.im
Apache License 2.0
244 stars 62 forks source link

STUN listener process leak #36

Closed mickel8 closed 2 years ago

mickel8 commented 2 years ago

Hi, when you call add_listener there is a new process spawned

https://github.com/processone/stun/blob/master/src/stun_listener.erl#L66-L67

But I can't see it to be linked to anything or spawned under some supervisor. When your stun_listener process dies, all processes spawned as a result of a call to add_listener will remain and ports they are using will remain open. Am I right?