schollz / peerdiscovery

Pure-Go library for cross-platform local peer discovery using UDP multicast :woman: :repeat: :woman:
MIT License
638 stars 55 forks source link

Close PacketConn listener when StopChan signals exit #29

Closed fzwoch closed 2 years ago

fzwoch commented 2 years ago

One way to address https://github.com/schollz/peerdiscovery/issues/28

While not perfect it helps for me, where a long running process repeatably start/stops discovering. Else the process will stop at some point with "too many open files".

schollz commented 2 years ago

Looks great!