anacrolix / anacrolix/torrent

High number of WebRTC peer connections is being created during transfer

オープン
#805 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
confirmed
主要言語
Go
スター
6.1k
フォーク
690
平均マージ
3日 10時間
マージ済み PR(30日)
12

説明

Looking at the WebRTC / webtorrent part of the project, I noticed that, when downloading a file, a new offer is being created (seemingly) at every piece transferred. This happens when `TrackerClient.Announce()` is called, in which `TrackerClient.newOffer()` creates a new offer with a new WebRTC peer connection.

I'd imagined that we'd create a peer connection for each connection to a torrent peer (naming gets a bit confusing here) and keep it open for as long as we're transferring pieces from that peer, but it looks like this is not the case. I was wondering whether this is part of the torrent protocol, or if there is another reason for it?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。