r140 - in /debtorrent/trunk/DebTorrent: BT1/Downloader.py download_bt1.py

camrdale-guest at users.alioth.debian.org camrdale-guest at users.alioth.debian.org
Tue Jul 10 18:46:50 UTC 2007


Author: camrdale-guest
Date: Tue Jul 10 18:46:50 2007
New Revision: 140

URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=140
Log:
Remove the unused request_backlog option.

Modified:
    debtorrent/trunk/DebTorrent/BT1/Downloader.py
    debtorrent/trunk/DebTorrent/download_bt1.py

Modified: debtorrent/trunk/DebTorrent/BT1/Downloader.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/BT1/Downloader.py?rev=140&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/BT1/Downloader.py (original)
+++ debtorrent/trunk/DebTorrent/BT1/Downloader.py Tue Jul 10 18:46:50 2007
@@ -548,8 +548,6 @@
     @ivar storage: the StorageWrapper instance
     @type picker: L{PiecePicker.PiecePicker}
     @ivar picker: the PiecePicker instance
-    @type backlog: C{int}
-    @ivar backlog: the maximum number of requests for a single connection
     @type max_rate_period: C{float}
     @ivar max_rate_period: maximum amount of time to guess the current 
             rate estimate represents
@@ -611,7 +609,7 @@
     
     """
     
-    def __init__(self, storage, picker, backlog, max_rate_period,
+    def __init__(self, storage, picker, max_rate_period,
                  numpieces, chunksize, measurefunc, snub_time,
                  kickbans_ok, kickfunc, banfunc):
         """Initialize the instance.
@@ -620,8 +618,6 @@
         @param storage: the StorageWrapper instance
         @type picker: L{PiecePicker.PiecePicker}
         @param picker: the PiecePicker instance
-        @type backlog: C{int}
-        @param backlog: the maximum number of requests for a single connection
         @type max_rate_period: C{float}
         @param max_rate_period: maximum amount of time to guess the current 
             rate estimate represents
@@ -647,7 +643,6 @@
         
         self.storage = storage
         self.picker = picker
-        self.backlog = backlog
         self.max_rate_period = max_rate_period
         self.measurefunc = measurefunc
         self.totalmeasure = Measure(max_rate_period*(float(storage.datalength)/float(len(storage.piece_lengths)))/storage.request_size)

Modified: debtorrent/trunk/DebTorrent/download_bt1.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/download_bt1.py?rev=140&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/download_bt1.py (original)
+++ debtorrent/trunk/DebTorrent/download_bt1.py Tue Jul 10 18:46:50 2007
@@ -67,8 +67,6 @@
         "How many bytes to query for per request."),
     ('upload_unit_size', 1460,
         "when limiting upload rate, how many bytes to send at a time"),
-    ('request_backlog', 10,
-        "maximum number of requests to keep in a single pipe at once."),
     ('max_message_length', 2 ** 23,
         "maximum length prefix encoding you'll accept over the wire - larger values get the connection dropped."),
     ('ip', '',
@@ -1175,7 +1173,7 @@
         self.ratemeasure_datarejected = self.ratemeasure.data_rejected
 
         self.downloader = Downloader(self.storagewrapper, self.picker,
-            self.config['request_backlog'], self.config['max_rate_period'],
+            self.config['max_rate_period'],
             self.len_pieces, self.config['download_slice_size'],
             self._received_data, self.config['snub_time'], self.config['auto_kick'],
             self._kick_peer, self._ban_peer)




More information about the Debtorrent-commits mailing list