Beaker: Peers joining unshared drive

Created on 16 May 2020  路  4Comments  路  Source: beakerbrowser/beaker

Describe the bug
I downloaded the v1.0 beta release of BeakerBrowser and created a Chat Room from the template. After the site was created, I watched many peers connect and disconnect from the chat. I never shared the hyper:// link. I was under the impression the public key urls were undiscoverable unless I shared them. I was able to reproduce this by creating a second chat room.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Chat Room from the template
  2. Watch peers join and leave

Expected behavior
Peers would only join if I shared the hyper:// link

Screenshots
image

Desktop (please complete the following information):

  • macOS 10.15.4
  • Beaker v1.0.0-prerelease.1
bug

Most helpful comment

@pfrazee @bndw Fixed in peersockets 0.3.3.

All 4 comments

Thanks for reporting! @andrewosh looks like something is off here

Digging into it a bit, the peers joining/leaving don't necessarily have access to the chat room drive.

The way our replication system currently works is that when you get a new connection from the swarm, it will attempt to replicate the chat room over that connection -- because the remote side of does not have access to the chat room's key, the connection will immediately close. Alas, those quick open/close events are still triggering the peersocket's join/leave.

I'll dig into that, but this output doesn't indicate that any of those peers actually have read access to the drive (or know its key).

@pfrazee @bndw Fixed in peersockets 0.3.3.

@andrewosh Thanks for the walk through, makes sense.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

msfeldstein picture msfeldstein  路  3Comments

dasanchez picture dasanchez  路  3Comments

monkey000 picture monkey000  路  4Comments

ShalokShalom picture ShalokShalom  路  4Comments

NicholasGWK picture NicholasGWK  路  4Comments