mldonkey-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-bugs] [bug #14468] max_hard_upload_rate erratic behavior (load


From: pango
Subject: [Mldonkey-bugs] [bug #14468] max_hard_upload_rate erratic behavior (load sensitive)
Date: Tue, 13 Sep 2005 02:43:05 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050718 Galeon/1.3.20 (Debian package 1.3.20-1)

Follow-up Comment #6, bug #14468 (project mldonkey):

Ok, I think I've found a bug in bittorrent upload handler (I don't use
bittorrent, so I missed it before).
Since this support tries to send data in bigger chunks than what the upload
scheduler usually allows in one turn, it maintains its own credit
accumulators internally (one per connection).
However, main credits are decremented twice, once when they're transfered to
private accumulators, and once when data is sent.

The quick fix is to remove the call to consume_bandwidth when data is sent.

That's only a quick fix however. Keeping a private accumulator per client
means that the bittorrent support can generate big overshots. And with a
single accumulator, it will be difficult to be fair within clients of the
same network, since the upload scheduler forces a client rotation before each
call. Maybe each network support should have its own Fifo of upload slots...
(?)


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14468>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]