chr15m / bugout

Back end web app services over WebRTC.
https://chr15m.github.io/bugout
MIT License
603 stars 59 forks source link

Bugout in Safari Version 14.1.1 (15611.2.7.1.6, 15611) makes no peer connections #49

Closed draeder closed 3 years ago

draeder commented 3 years ago

Bugout used to make connections using Safari several Mac updates ago, although it was always much slower to connect than any of the other browsers. Now, it never makes connections at all.

Tab A:

[Log] bugout address +0ms – "bPL9yE1L9wEhAnFxryrc99yHdEVktHRc6b" (bugout.min.js, line 6)
[Log] bugout identifier +0ms – "My Room Name" (bugout.min.js, line 6)
[Log] bugout public key +0ms – "REMOVED" (bugout.min.js, line 6)
[Log] bugout encryption key +1ms – "REMOVED" (bugout.min.js, line 6)
[Log] bugout torrent +29ms – "My Room Name" – Torrent {_events: Object, _eventsCount: 2, _maxListeners: undefined, …} (bugout.min.js, line 6)
Torrent {_events: Object, _eventsCount: 2, _maxListeners: undefined, _debugId: "f5bc58e", client: WebTorrent, …}Torrent
[Log] bugout sent +5s – "87c2dfd98302318589850ac19c3be7fe555d9f4d33787aeb72f9661a947799e47703971192849b5f5ff64cd33dbdc809" – "to" – 0 – "wires" (bugout.min.js, line 6)
[Log] bugout sent +7m – "9a52e152f1555a2f78a2cbb9129fc4567b6123c3a0dbc904fae55537b9966aee5a5359f339a5caa17cd3b08be41df2f3" – "to" – 0 – "wires" (bugout.min.js, line 6)

Tab B:

[Log] bugout address +0ms – "bFtNy1EGrNLkFZNs4wyYRnXftZK8bZhh7V" (bugout.min.js, line 6)
[Log] bugout identifier +1ms – "My Room Name" (bugout.min.js, line 6)
[Log] bugout public key +0ms – "REMOVED" (bugout.min.js, line 6)
[Log] bugout encryption key +0ms – "REMOVED" (bugout.min.js, line 6)
[Log] bugout torrent +59ms – "My Room Name" – Torrent (bugout.min.js, line 6)
Torrent_amInterested: false_critical: []Array (0)_debugId: "f5bc58e"_destroyStoreOnDestroy: false_downloadSpeed: function(delta)_events: {close: function, wire: Array}Object_eventsCount: 2_fileModtimes: undefined_getAnnounceOpts: undefined_hashes: ["3bc15c8aae3e4124dd409035f32ea2fd6835efc9"]Array (1)_maxListeners: undefined_peers: {}Object_peersLength: 0_preloadedStore: null_queue: []Array (0)_rarityMap: {_torrent: Torrent, _numPieces: 1, _pieces: [0], _onWire: function, _onWireHave: function, …}Object_rechokeIntervalId: 4_rechokeNumSlots: 10_rechokeOptimisticTime: 0_rechokeOptimisticWire: null_reservations: [null]Array (1)_selections: []Array (0)_servers: []Array (0)_store: function(chunkLength,opts)_uploadSpeed: function(delta)_xsRequests: []Array (0)announce: ["ws://literate-smoggy-monday.glitch.me/", "ws://tracker-swarm-node.herokuapp.com/", "ws://shadowed-thoracic-sponge.glitch.me/", "ws://tracker-swarm-node2.herokuapp.com/"]Array (4)0 "ws://literate-smoggy-monday.glitch.me/"1 "ws://tracker-swarm-node.herokuapp.com/"2 "ws://shadowed-thoracic-sponge.glitch.me/"3 "ws://tracker-swarm-node2.herokuapp.com/"Array Prototypebitfield: BitField {grow: 0, buffer: Uint8Array [128], get: function, set: function, forEach: function}BitFieldclient: WebTorrent {_events: {}, _eventsCount: 0, _maxListeners: undefined, peerId: "2d5757303130302d554e6d6e3564664e55506e2f", peerIdBuffer: Buffer, …}WebTorrentcreated: Sat Jun 26 2021 17:18:39 GMT-0500 (CDT) Sat Jun 26 2021 17:18:39 GMT-0500 (CDT)createdBy: "WebTorrent/0100"destroyed: falsediscovery: {_events: Object, _eventsCount: 5, _maxListeners: undefined, peerId: "2d5757303130302d554e6d6e3564664e55506e2f", infoHash: "f5bc58edcdeecd1d6a4a3959b90ef39a00c05a68", …}Objectdone: truefiles: [File]Array (1)info: {length: 1, name: Buffer [45], piece length: 16384, pieces: Buffer}ObjectinfoBuffer: Buffer [100, 54, 58, 108, 101, 110, 103, 116, 104, 105, …]Buffer (75)infoHash: "f5bc58edcdeecd1d6a4a3959b90ef39a00c05a68"infoHashBuffer: Buffer [245, 188, 88, 237, 205, 238, 205, 29, 106, 74, …]Buffer (20)lastPieceLength: 1length: 1magnetURI: "magnet:?xt=urn:btih:f5bc58edcdeecd1d6a4a3959b90ef39a00c05a68&dn=-&tr=ws%3A%2F%2Fliterate-smoggy-monday.glitch.me%2F&tr=ws%3A%2F%2Ftracker-sw…"maxWebConns: 4metadata: Buffer [100, 56, 58, 97, 110, 110, 111, 117, 110, 99, …]Buffer (398)name: "My Room Name"path: "/webtorrent/f5bc58edcdeecd1d6a4a3959b90ef39a00c05a68"paused: falsepieceLength: 16384pieces: [null]Array (1)ready: truereceived: 0skipVerify: truestore: {store: Storage, chunkLength: 16384, mem: [null]}Objectstrategy: "sequential"torrentFile: Buffer [100, 56, 58, 97, 110, 110, 111, 117, 110, 99, …]Buffer (398)uploaded: 0urlList: []Array (0)wires: []Array (0)Torrent Prototype
[Log] bugout sent +2s – "cc31846443548ba4a90224e4a6967c87bf69c4abc08e30e232530af7c5d3b18124dbbe775fc7299e54401ebf6f814ed1" – "to" – 0 – "wires" (bugout.min.js, line 6)

I wonder if this is an issue with Safari itself, or recent updates to WebTorrent and associated modules... Note this happens with Bugout using the current dependency version and the WebTorrent dependency bump I tested with and submitted a PR for #47. Which makes me think Safari itself may be the issue.

draeder commented 3 years ago

Looks like this is fixed in the Big Sur update of Safari (Version 14.1.1 (16611.2.7.1.4))!