英文:
Do I remove peers after a certain amount of time?(mainline dht)
问题
我刚刚完成了使用基于扁平路由表的主线DHT的实现。我记得在Kademilia中有关更新对等方列表和有效的密钥重新发布的内容,我开始思考是否在一定时间后应该从对等方列表中删除对等方。但我在BEP中找不到相关信息。
英文:
I just finished implementing mainline dht with a flat based routing table. I recall from kademilia something about an updated peer list and efficient key republishing and I started to wonder if after a certain amount of time I should remove peers from peer lists. But I can't find anything in bep about it.
答案1
得分: 1
我在询问关于BitTorrent对等方。
是的,它们应该只存储有限的时间。规范似乎对此保持沉默。Libtorrent使用45分钟的超时。
Qbittorrent似乎只发送最多20个对等方,而我的实现最多有300个
这可能只返回其存储的一部分,以保持UDP数据包大小低于链路MTU。
英文:
> I'm asking about BitTorrent peers.
Yes, they should only be stored for a finite amount of time. The spec seems to be silent on that. Libtorrent uses 45min timeout.
> Qbittorrent seems to only send out 20 peers at most while my implementation has up to 300
It's probably only returning a sample of what it stores to keep UDP packet sizes below the link MTU.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论