[Debtorrent-commits] r47 - in /debtorrent/branches/http-listen: ./
DebTorrent/BT1/AptListener.py
DebTorrent/BT1/FileSelector.py DebTorrent/BT1/PiecePicker.py
DebTorrent/BT1/Storage.py
camrdale-guest at users.alioth.debian.org
camrdale-guest at users.alioth.debian.org
Thu May 10 23:48:09 UTC 2007
Author: camrdale-guest
Date: Thu May 10 23:48:08 2007
New Revision: 47
URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=47
Log:
Make priority default to never (currently causes error due to bittornado bug)
Modified:
debtorrent/branches/http-listen/ (props changed)
debtorrent/branches/http-listen/DebTorrent/BT1/AptListener.py
debtorrent/branches/http-listen/DebTorrent/BT1/FileSelector.py
debtorrent/branches/http-listen/DebTorrent/BT1/PiecePicker.py
debtorrent/branches/http-listen/DebTorrent/BT1/Storage.py
Propchange: debtorrent/branches/http-listen/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu May 10 23:48:08 2007
@@ -1,1 +1,3 @@
*.pyc
+.project
+.pydevproject
Modified: debtorrent/branches/http-listen/DebTorrent/BT1/AptListener.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/branches/http-listen/DebTorrent/BT1/AptListener.py?rev=47&op=diff
==============================================================================
--- debtorrent/branches/http-listen/DebTorrent/BT1/AptListener.py (original)
+++ debtorrent/branches/http-listen/DebTorrent/BT1/AptListener.py Thu May 10 23:48:08 2007
@@ -840,6 +840,11 @@
def get(self, connection, path, headers):
+ print 'URL: ' + path + '\n'
+ print 'HEADERS: ',
+ print headers,
+ print
+ return (404, 'Not Found', {'Content-Type': 'text/plain', 'Pragma': 'no-cache'}, alas)
real_ip = connection.get_ip()
ip = real_ip
if is_ipv4(ip):
Modified: debtorrent/branches/http-listen/DebTorrent/BT1/FileSelector.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/branches/http-listen/DebTorrent/BT1/FileSelector.py?rev=47&op=diff
==============================================================================
--- debtorrent/branches/http-listen/DebTorrent/BT1/FileSelector.py (original)
+++ debtorrent/branches/http-listen/DebTorrent/BT1/FileSelector.py Thu May 10 23:48:08 2007
@@ -27,7 +27,7 @@
storage.set_bufferdir(bufferdir)
self.numfiles = len(files)
- self.priority = [1] * self.numfiles
+ self.priority = [-1] * self.numfiles
self.new_priority = None
self.new_partials = None
self.filepieces = []
@@ -51,7 +51,7 @@
pieces = range(start_piece,end_piece+1)
self.filepieces.append(tuple(pieces))
self.numpieces = len(piece_lengths)
- self.piece_priority = [1] * self.numpieces
+ self.piece_priority = [-1] * self.numpieces
Modified: debtorrent/branches/http-listen/DebTorrent/BT1/PiecePicker.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/branches/http-listen/DebTorrent/BT1/PiecePicker.py?rev=47&op=diff
==============================================================================
--- debtorrent/branches/http-listen/DebTorrent/BT1/PiecePicker.py (original)
+++ debtorrent/branches/http-listen/DebTorrent/BT1/PiecePicker.py Thu May 10 23:48:08 2007
@@ -24,7 +24,7 @@
self.started = []
self.totalcount = 0
self.numhaves = [0] * numpieces
- self.priority = [1] * numpieces
+ self.priority = [-1] * numpieces
self.removed_partials = {}
self.crosscount = [numpieces]
self.crosscount2 = [numpieces]
Modified: debtorrent/branches/http-listen/DebTorrent/BT1/Storage.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/branches/http-listen/DebTorrent/BT1/Storage.py?rev=47&op=diff
==============================================================================
--- debtorrent/branches/http-listen/DebTorrent/BT1/Storage.py (original)
+++ debtorrent/branches/http-listen/DebTorrent/BT1/Storage.py Thu May 10 23:48:08 2007
@@ -41,7 +41,7 @@
self.files = files
self.piece_lengths = piece_lengths
self.doneflag = doneflag
- self.disabled = [False] * len(files)
+ self.disabled = [True] * len(files)
self.file_ranges = []
self.file_pieces = []
self.disabled_ranges = []
@@ -64,7 +64,7 @@
self.lock = Lock()
if not disabled_files:
- disabled_files = [False] * len(files)
+ disabled_files = [True] * len(files)
for i in xrange(len(files)):
file, length = files[i]
More information about the Debtorrent-commits
mailing list