beakerbrowser / beaker

An experimental peer-to-peer Web browser
https://beakerbrowser.com/
MIT License
6.75k stars 545 forks source link

On network change did not update peers connection with the refresh of the tab content #1904

Open toktu opened 3 years ago

toktu commented 3 years ago

Describe the Bug The refresh commands (F5/address bar enter) won't work to update the peers list once the network is changed. However, the same hyperdrive in a new tab is loading the full list of peers available.

To Reproduce

  1. On client PC go to hyper URL and load the content of file 1.txt
  2. Change the network of the client PC (connect to a hotspot for example)
  3. On the host PC change the content of file 1.txt
  4. On the client PC press F5 or reload the hyperdrive with enter -> the peers list won't update and also the content of file 1.txt
  5. After a while (2-4 min) the peers list is automatically updated and also on load file 1.txt is with the new content
  6. If the tab on client PC is closed and the URL of the drive is visited in new tab - the peers list is up-to-date

Expected Behavior On network change the peers list to be updated on hyperdrive reload - force refresh.

Environment Client: