Open swissmanu opened 7 years ago
might be fixed by #7
Problem here is the UDP socket opened in https://github.com/swissmanu/harmonyhubjs-discover/blob/ba774fd1046e920d1e366e240e67d06f031df57e/lib/ping.js#L8 that is never fully closed.
Doing discover.ping.socket.unref();
after stop seems to fix the issue for me.
since this repo seems to be abandoned i created an updated package which includes some of the here available pull requests, hop over to @harmonyhub and give it a try.
as discovered by https://github.com/swissmanu/orchestra/issues/2, the udp socket used for the discover broadcasts is not closed properly once the parent process gets killed.
might be related to #4