schollz / peerdiscovery

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

cant discover others when wake from hibernate #13

Open xurwxj opened 4 years ago

xurwxj commented 4 years ago

how to fix it? cant discover others when a win10 host waked from hibernate, others can discover it. if reboot or switch the lan of win10, then all gone well.

go 1.14 mac 10.15.3 win10 professional

schollz commented 4 years ago

That is strange! I'm not sure the reason why or how to fix.. Its very reproducible?

xurwxj commented 4 years ago

step of reproduce:

  1. startup the program in win10 on a laptop, others can discover it, all ok before next step trigger;
  2. hibernate the win10, wake up after 10 minutes;
  3. the program still under running, keep broadcasting from log, but others can't discover it;
  4. disable the wifi interface, then reenable, can be discovered again.