[转载] 研究一下BT code 吧# Programming - 葵花宝典
c*n
1 楼
【 以下文字转载自 Linux 讨论区 】
【 原文由 creation 所发表 】
似乎现在seeds 的upload unchoke 有问题,
它给谁分配bw 是undefined.
see Choker.py:50
for c in self.connections:
u = c.get_upload()
if c in preferred:
u.unchoke()
else:
if count < self.min_uploads or not hit:
u.unchoke()
如果self 是seed, preferred=[],
the line 55 basically gave bandwidth to the first self.min_uploads members of
self.connections, whose order is not defined at all
bt the b
【 原文由 creation 所发表 】
似乎现在seeds 的upload unchoke 有问题,
它给谁分配bw 是undefined.
see Choker.py:50
for c in self.connections:
u = c.get_upload()
if c in preferred:
u.unchoke()
else:
if count < self.min_uploads or not hit:
u.unchoke()
如果self 是seed, preferred=[],
the line 55 basically gave bandwidth to the first self.min_uploads members of
self.connections, whose order is not defined at all
bt the b